In my Dockerfile, I would like to define variables that I can use later in the Dockerfile.
I am aware of the
You can use ARG - see https://docs.docker.com/engine/reference/builder/#arg
The
ARGinstruction defines a variable that users can pass at build-time to the builder with thedocker buildcommand using the--build-argflag. If a user specifies a build argument that was not defined in the Dockerfile, the build outputs an error.=