How to mount secret file in docker image build & use variable from secret file in Dockerfile to authenticate a command?
Can someone please provide an example of the following command: DOCKER_BUILDKIT=1 docker build --secret:id=mysecret,src=/local/secret ... I don't know how to access the variables from secret file after mounting. For example: I want to set Proxy using the secret passed and…