Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:16.04
- MAINTAINER ubuntu
- RUN apt-get update
- RUN apt-get install -y nginx
- RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
- RUN chown -R www-data:www-data /var/lib/nginx
- VOLUME ["/data", "/etc/nginx/site-enabled", "/var/log/nginx"]
- WORKDIR /etc/nginx
- CMD ["nginx"]
- EXPOSE 80
- EXPOSE 443
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement