I have a docker image that needs some credentials passed from the host-environment. How do I pass Linux environmental variables into dockerfile. No flags attachment only dockerfile.
When I build the Docker Image it fetches packages from a local repo that needs authentication. This is all automated and the credentials depend on the host machine that is running.
I have tried to google it and only found how to pass hard-coded varibles. But I need e.g.
export VAR=[PASSWORD]
to be passed into the dockerfile.
ENV PASSWORD = $VAR