default index templates
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -2,7 +2,7 @@ FROM debian:buster-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
apache2 \
|
||||
apache2 markdown\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APACHE_RUN_USER www-data
|
||||
@@ -22,16 +22,27 @@ RUN a2enmod proxy && \
|
||||
a2enmod proxy_balancer && \
|
||||
a2enmod proxy_connect && \
|
||||
a2enmod proxy_html && \
|
||||
a2enmod ldap
|
||||
a2enmod ldap && \
|
||||
a2enmod authnz_ldap
|
||||
|
||||
RUN rm /etc/apache2/sites-enabled/*
|
||||
COPY apache2.conf /etc/apache2/apache2.conf
|
||||
COPY conf-enabled/*.conf /etc/apache2/conf-enabled/
|
||||
COPY cfg /etc/apache2/cfg
|
||||
COPY sites /etc/apache2/sites
|
||||
|
||||
|
||||
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/
|
||||
|
||||
WORKDIR /var/www/html
|
||||
COPY README.md .
|
||||
COPY html/* .
|
||||
|
||||
RUN cat template.html | \
|
||||
sed -r "/\[README\]/ e markdown README.md" | \
|
||||
sed "s/\[README\]//g" \
|
||||
> index.html
|
||||
|
||||
WORKDIR /etc/apache2
|
||||
RUN apachectl configtest
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user