I don't want to have another .sh file with a script and going to add a shell script code promptly in the Dockerfile. However, I receive an error message during the image build:
/bin/sh: syntax error: unexpected end of file (expecting "do")
Here is the part of the Dockerfile with a script:
RUN cat .env | while [ read LINE ] \
do \
envName=$(echo "$LINE" | grep -o "^[^\=]*") \
echo "PassEnv $envName" >> httpd.conf \
done
Any ideas what is wrong?