Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. FROM ubuntu:16.04
  2.  
  3. # Install dependencies
  4. RUN apt-get update
  5. RUN apt-get -y install apache2
  6.  
  7. # Install apache and write hello world message
  8. RUN echo 'Hello World!' > /var/www/html/index.html
  9.  
  10. # Configure apache
  11. RUN echo '. /etc/apache2/envvars' > /root/run_apache.sh
  12. RUN echo 'mkdir -p /var/run/apache2' >> /root/run_apache.sh
  13. RUN echo 'mkdir -p /var/lock/apache2' >> /root/run_apache.sh
  14. RUN echo '/usr/sbin/apache2 -D FOREGROUND' >> /root/run_apache.sh
  15. RUN chmod 755 /root/run_apache.sh
  16.  
  17. EXPOSE 80
  18.  
  19. CMD /root/run_apache.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement