Passing secrets to a Dockerfile
Tue 15 March 2022
, in Misc.
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 …
Yorgos Katsaros