You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.1 KiB
60 lines
1.1 KiB
5 years ago
|
#Choose Debian
|
||
|
FROM debian:jessie
|
||
|
|
||
|
MAINTAINER DiouxX "github@diouxx.be"
|
||
|
|
||
|
RUN echo "deb http://ftp.de.debian.org/debian stretch main" >> /etc/apt/sources.list
|
||
|
|
||
|
#Don't ask questions during install
|
||
|
ENV DEBIAN_FRONTEND noninteractive
|
||
|
|
||
|
#Install apache2 and enable proxy mode
|
||
|
RUN apt update \
|
||
|
&& apt -y install \
|
||
|
apache2 \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
#libapache2-mod-auth-cas \
|
||
|
#php7.0-mysql \
|
||
|
#php7.0-opcache \
|
||
|
#php7.0-common \
|
||
|
#curl \
|
||
|
#php7.0-mbstring \
|
||
|
#php7.0-mcrypt \
|
||
|
#php7.0-cli \
|
||
|
#php7.0-intl \
|
||
|
#php7.0-json \
|
||
|
#php7.0-xsl \
|
||
|
#php7.0-curl \
|
||
|
#php7.0-memcached \
|
||
|
#php7.0-readline \
|
||
|
#php7.0-recode \
|
||
|
#php7.0-fpm \
|
||
|
#php7.0 \
|
||
|
#libapache2-mod-php7.0 libapache2-mod-php \
|
||
|
|
||
|
RUN a2enmod proxy \
|
||
|
&& a2enmod proxy_http \
|
||
|
&& a2enmod ssl \
|
||
|
&& a2enmod headers \
|
||
|
&& a2enmod rewrite \
|
||
|
&& a2enmod proxy_wstunnel \
|
||
|
&& service apache2 stop
|
||
|
#&& a2enmod auth_cas \
|
||
|
#&& a2enmod php7.0 \
|
||
|
|
||
|
#Ports
|
||
|
EXPOSE 80 443 8080
|
||
|
|
||
|
#Volumes
|
||
|
VOLUME /opt/proxy-conf
|
||
|
VOLUME /opt/ssl
|
||
|
VOLUME /opt/logs
|
||
|
VOLUME /opt/www
|
||
|
VOLUME /opt/private
|
||
|
|
||
|
#Launch Apache2 on FOREGROUND
|
||
|
COPY apache-proxy-start.sh /opt/
|
||
|
RUN chmod +x /opt/apache-proxy-start.sh
|
||
|
ENTRYPOINT ["/opt/apache-proxy-start.sh"]
|