Docker – Prepending command with SHELL doesn't work
I have script.sh as below: MYVAR=world I then have a Dockerfile as below: FROM redhat/ubi8 COPY script.sh /script.sh # Source the script and echo. Expected to see: hello world RUN source /script.sh && echo hello $MYVAR # Run echo without…