I am adding some environment settings on docker repo automatic build, lets say, WEBSERVER_PRIVATE_KEY=123
in my Dockerfile, when I build locally, I assume it would pick up the env value
RUN echo $WEBSERVER_PRIVATE_KEY > /somewhere/key
But it didn't work.
I had a look at the ENV
command, but it doesn't seem there is a way to inject that value.
I had a look at the ARG
command, but it requires to pass as --build-arg
which I doubt it will work during built on docker repo.
See below environment settings on docker repo during automatic builds, how do I make the Dockerfile to reference the WEBSERVER_PRIVATE_KEY
in the setting.