Skip to content

Commit

Permalink
passage à nginx unprivileged-alpine script env
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebarros committed Feb 13, 2024
1 parent 65d0b64 commit bdc3116
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ RUN apk add --no-cache bash
# Make our shell script executable
RUN chmod +x env.sh

RUN /bin/bash -c '/usr/share/nginx/html/env.sh'

EXPOSE 8080

USER nginx

# Start Nginx server
CMD ["/bin/bash", "-c", "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\""]
CMD ["/bin/bash", "-c", "nginx -g \"daemon off;\""]

0 comments on commit bdc3116

Please # to comment.