I am using the following command in a shell script to pass the docker args
docker build -t "${IMAGE_INPUT}-temp" --build-arg BASE_IMAGE=$IMAGE_INPUT --build-arg TEMP_DIR=$TEMP -f $DOCKER_FILE .
and my docker file has the following content
ARG BASE_IMAGE
ARG TEMP_DIR
FROM $BASE_IMAGE
RUN echo $TEMP_DIR && \
echo $BASE_IMAGE
but both the variables print as null here despite passing values in the docker build command. After assigning default values it works but without default values the variable values are going as null.
Could someone please help as to how can i pass multiple args and use those args in my dockerfile