Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # NGINX Dockerfile
- FROM nginx:latest
- # Set NGINX to run as root
- USER root
- # Copy custom configuration file
- COPY /nginx-conf/nginx.conf /etc/nginx/nginx.conf
- # Set up uploads directory
- RUN mkdir -p /var/www/html/uploads && \
- chown -R www-data:www-data /var/www/html/uploads && \
- chmod -R 775 /var/www/html/uploads
- # Expose port 80
- EXPOSE 80
- # Start NGINX
- CMD ["nginx", "-g", "daemon off;"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement