FROM node:latest
ARG TEST_ARG
ENV TEST_ENV=0
RUN if [ "$DOES_NOT_EXIST" != "" ] ; then echo "Setting" ; TEST_ENV=$TEST_ARG ; fi
RUN echo $TEST_ENV
I can't seem to set the ENV variable at runtime. It persists at showing 0. TEST_ARG is working as it should, I've checked this.