Advertisement
Guest User

Untitled

a guest
May 26th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. FROM ubuntu:16.04
  2. MAINTAINER ubuntu
  3.  
  4. RUN apt-get update
  5. RUN apt-get install -y nginx
  6. RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
  7. RUN chown -R www-data:www-data /var/lib/nginx
  8.  
  9. VOLUME ["/data", "/etc/nginx/site-enabled", "/var/log/nginx"]
  10.  
  11. WORKDIR /etc/nginx
  12.  
  13. CMD ["nginx"]
  14.  
  15. EXPOSE 80
  16. EXPOSE 443
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement