Passing secrets to a Dockerfile

Problem
You want to safely use a secret inside a Dockerfile. This secret may be stored in an environment varialbe or a text file. Using the ARG instruction in the Dockerfile is not safe because everyone can see these values using the docker history <image> command. One possible workaround is …

Continue reading »