This repo contains two Dockerfiles used to demonstrate the new --secret
flag available in the docker build
command (docs here).
Run make build-without-buildkit
to run a Docker build against Dockerfile
.
Run make dockerfile-buildkit
to run a Docker build against Dockerfile-buildkit
that supplies a secret.
Warning: you should not cat
out a sensitive value in your Dockerfile; this repo just does it for demonstration purposes!