Use of ARG variables from Dockerfile in a python file which is inside the container built from the docker file

  docker

I have 2 values:

  • ARG USERNAME
  • ARG PASSKEY

I built the dockerfile and is running the image successfully. In a Python file (inside the docker image), needs to use those username and passkey values.

Source: Docker Questions

LEAVE A COMMENT