Using docker to multi-stage build a docker image containing the alpine OS.
293
Using docker to multi-stage build a docker image containing the alpine OS.
build-push.sh contains,
DOCKER_BUILDKIT=0 docker build -t jeffdecola/compact-multi-stage-build-example .
docker push jeffdecola/compact-multi-stage-build-example
Obviously, you will have to edit and create an account at dockerhub.
To run on your machine, I suggest,
docker pull jeffdecola/compact-multi-stage-build-example
docker run --name compact-multi-stage-build-example -dit jeffdecola/compact-multi-stage-build-example
To bash shell into the container and check versions,
docker exec -i -t compact-multi-stage-build-example /bin/bash
cat /etc/os-release
To see the output,
docker logs -f compact-multi-stage-build-example
Content type
Image
Digest
sha256:15be71799…
Size
6.8 MB
Last updated
over 3 years ago
docker pull jeffdecola/compact-multi-stage-build-example