Closed stevenjswanson closed 2 months ago
You would use --build-arg
when using the docker
CLI. However, when using docker-compose
, prefixing the command with these environment variables passes it into the docker-compose.yml
file here, for example. The docker-compose.yml
file has defaults which you can override at runtime.
The Dockerfile can interpolate variables from the environment.
Closing.
You have
But I think you need to use
--build-arg
to set those variable so they are used byDockerfile