Spaces:
Runtime error

stat-utas commited on
Commit
3fc0a29
·
verified ·
1 Parent(s): 11a0a36

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -43,5 +43,8 @@ RUN echo 'events {' > /etc/nginx/nginx.conf && \
43
  # Expose ports
44
  EXPOSE 8080 3306
45
 
 
 
 
46
  # Start MariaDB and Nginx services
47
  CMD ["sh", "-c", "mysqld_safe & nginx -g 'daemon off;'"]
 
43
  # Expose ports
44
  EXPOSE 8080 3306
45
 
46
+ # Run Nginx as root
47
+ USER root
48
+
49
  # Start MariaDB and Nginx services
50
  CMD ["sh", "-c", "mysqld_safe & nginx -g 'daemon off;'"]