Dockerfile.isoweb

From Cactus Howto
Revision as of 10:26, 21 December 2014 by Tim (talk | contribs)
Jump to navigationJump to search
FROM ubuntu:14.04.1
MAINTAINER itsecorg@cactus.de

RUN apt-get update && apt-get install -y apache2 libapache2-mod-php5 php5-pgsql php-pear && apt-get clean && rm -rf /var/lib/apt/lists/* \
   a2enmod ssl
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
COPY web /web
COPY install/etc/httpd.conf /etc/apache2/sites-available/itsecorg.conf
COPY install/etc/iso.conf /etc/
COPY install/etc/gui.conf /etc/
USER www-data
RUN a2ensite itsecorg.conf
EXPOSE 443
# Add VOLUMEs to allow backup of config, logs and databases
VOLUME  ["/etc/apache2", "/var/log/apache2", "/var/lib/apache2"]
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]