Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:16.04
- MAINTAINER kukukk <email>
- # Install apache2
- RUN apt-get update && \
- apt-get -y upgrade && \
- apt-get install -y --no-install-recommends apache2 && \
- rm -rf /var/lib/apt/lists/*
- # Enable apache2 modules
- RUN a2enmod proxy_http rewrite headers ssl remoteip
- # Set up apache2
- RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
- # Create required folders to run apache2
- RUN mkdir -p /var/lock/apache2
- RUN mkdir -p /var/run/apache2
- # Create DocumentRoot and configuration folders
- RUN mkdir /www /conf /letsencrypt
- ENTRYPOINT ["apache2ctl", "-DFOREGROUND"]
Advertisement
Add Comment
Please, Sign In to add comment