The problem is i cannot get the docker build arg value in the shell script while running the docker build.
My docker build command:
DOCKER_BUILDKIT=1 docker build --no-cache --progress=plain \ -t test \ --build-arg WHL_PATH=/fake/path \ . Dockerfile
ARG WHL_PATH FROM python:3.8.8 COPY test.sh . RUN ./test.sh $WHL_PATH and in the test.sh the "$1" is empty...., if in the Dockerfile i put some constant value then i will be able to see that value in the $1, but with docker build arg or set the build arg as ENV VAR are always empty...
Where am i doing wrong, how should i achieve this?
Docker version 20.10.5, build 55c4c88