Dockerfile:
ARG arg
FROM main-registry.gitlab.com/base/folder/:{$arg}
specific conda environment file to use
ARG conda_environment=environment.yml
COPY . .
RUN conda update --quiet conda
I need to replace this $arg with the value provided in the build command:
docker build --build-arg arg="image_id" -t hello .
I am getting the arg correctly but I am not able to replace the value of the argument in url.
Ideal case:
new url = url/image_id
Reality:
new url = url/$arg
{}from what you originally posted. Seems like it should beFROM url/${arg}instead