To run this demo:
- Clone this repo git clone https://github.com/coding-latte/golang-docker-multistage-build-demo.git
- then, run docker build --rm -f "scratch.dockerfile" -t demo:latest .to build the docker image using scratch
- then, run the docker image docker run --rm -d -p 8080:8080/tcp golang-docker-multistage-build-scratch-demo:latest
- open your browser and navigate to localhost:8080
For more information about this repo, please visit the accompanying article here