I have the following lines in a Dockerfile:
ARG SOMEARGUMENT
COPY --from=$SOMEARGUMENT /some/path/goes/here
where SOMEARGUMENT could be either "some/repository:1.1.1" or "some/repository:2.2.2"
But when trying to build I always get the error:
invalid reference format: repository name must be lowercase
So it is obvious that the argument passed when building the image (i.e. SOMEARGUMENT) is not being resolved.
Is it actaully possible to do something like this in a Dockerfile?
Thanks.