add apache 2 config from galileo lxc
This commit is contained in:
38
Dockerfile
Normal file
38
Dockerfile
Normal file
@@ -0,0 +1,38 @@
|
||||
FROM debian:buster-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
apache2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_RUN_USER www-data
|
||||
ENV APACHE_RUN_GROUP www-data
|
||||
ENV APACHE_LOCK_DIR /var/lock/apache2
|
||||
ENV APACHE_LOG_DIR /var/log/apache2
|
||||
ENV APACHE_PID_FILE /var/run/apache2/apache2.pid
|
||||
ENV APACHE_SERVER_NAME localhost
|
||||
|
||||
RUN a2enmod proxy && \
|
||||
a2enmod xml2enc && \
|
||||
a2enmod proxy_http && \
|
||||
a2enmod proxy_ajp && \
|
||||
a2enmod rewrite && \
|
||||
a2enmod deflate && \
|
||||
a2enmod headers && \
|
||||
a2enmod proxy_balancer && \
|
||||
a2enmod proxy_connect && \
|
||||
a2enmod proxy_html && \
|
||||
a2enmod ldap
|
||||
|
||||
|
||||
COPY config_files/apache2.conf /etc/apache2/apache2.conf
|
||||
COPY config_files/conf-enabled/*.conf /etc/apache2/conf-enabled/
|
||||
COPY config_files/confs /etc/apache2/
|
||||
COPY config_files/sites /etc/apache2/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
CMD ["/usr/sbin/apache2ctl", "-DFOREGROUND"]
|
||||
Reference in New Issue
Block a user