In docker Build, how to send the parameters to the container inside is not the Docker. For example, I have an environment variable in Docker, which is not set. During compilation, different operations are performed to generate the image I specify according to the different parameters. It is not necessary to write the configuration for each different version.
Dockerfile internal writing
ARG
, and thendocker build --build-arg