In the final stage of the Dockerfile it says
WORKDIR /usr/share/nginx/html
COPY ./env.sh .
COPY .env .
RUN chmod +x env.sh
and in the nginx.conf that folder is used as root:
root /usr/share/nginx/html;
I think the sh script should not be part of the folder that nginx serves to the world.
In the final stage of the
Dockerfileit saysand in the
nginx.confthat folder is used as root:I think the sh script should not be part of the folder that nginx serves to the world.