Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2024
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. # NGINX Dockerfile
  2. FROM nginx:latest
  3.  
  4. # Set NGINX to run as root
  5. USER root
  6.  
  7. # Copy custom configuration file
  8. COPY /nginx-conf/nginx.conf /etc/nginx/nginx.conf
  9.  
  10. # Set up uploads directory
  11. RUN mkdir -p /var/www/html/uploads && \
  12. chown -R www-data:www-data /var/www/html/uploads && \
  13. chmod -R 775 /var/www/html/uploads
  14.  
  15. # Expose port 80
  16. EXPOSE 80
  17.  
  18. # Start NGINX
  19. CMD ["nginx", "-g", "daemon off;"]
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement