Fix nginx bind to port 80 error

This fixes `nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)` error as only root user can bind to port 80.
This commit is contained in:
Meradoch 2021-11-22 19:10:14 +03:00 committed by GitHub
parent d049e33b40
commit 343be8dc0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,4 +72,5 @@ RUN chown -R nginx:nginx /assets /etc/nginx/conf.d/ /var/www/html/
USER nginx
ENTRYPOINT ["/docker-entrypoint.sh"]
USER root
CMD ["nginx", "-g", "daemon off;"]