lets start by example. I have a simple Dockerfile:
ARG arg1
ARG arg2
RUN echo "$arg1 $arg2"
And what i expect when i call the command
docker build --build-arg arg1=abc --build-arg arg2=${arg1} .
Is that i got the abc abc as the outbut, but i got abc. So is the result that i want possible? And how can I achieve it?
arg2have to be set at build time, or can it be set in the Dockerfile?