kukukk

Dockerfile

Jan 11th, 2018
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. FROM ubuntu:16.04
  2. MAINTAINER kukukk <email>
  3.  
  4. # Install apache2
  5. RUN apt-get update && \
  6. apt-get -y upgrade && \
  7. apt-get install -y --no-install-recommends apache2 && \
  8. rm -rf /var/lib/apt/lists/*
  9.  
  10. # Enable apache2 modules
  11. RUN a2enmod proxy_http rewrite headers ssl remoteip
  12.  
  13. # Set up apache2
  14. RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
  15.  
  16. # Create required folders to run apache2
  17. RUN mkdir -p /var/lock/apache2
  18. RUN mkdir -p /var/run/apache2
  19.  
  20. # Create DocumentRoot and configuration folders
  21. RUN mkdir /www /conf /letsencrypt
  22.  
  23. ENTRYPOINT ["apache2ctl", "-DFOREGROUND"]
Advertisement
Add Comment
Please, Sign In to add comment