2024-05-06 12:00:20 +00:00
|
|
|
FROM debian:bookworm-slim
|
2022-07-05 13:45:31 +00:00
|
|
|
#Don't ask questions during install
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
#Install apache2 and enable proxy mode
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install apache2 \
|
|
|
|
&& a2enmod proxy headers proxy_http proxy_wstunnel rewrite \
|
|
|
|
&& apt-get autoclean \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& apt-get autoremove \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
COPY sub-domain.conf /etc/apache2/sites-available/sub-domain.conf
|
|
|
|
|
|
|
|
RUN a2dissite 000-default.conf && a2ensite sub-domain.conf \
|
|
|
|
&& apachectl configtest && apache2ctl -t && apache2ctl -S
|
|
|
|
|
2024-05-06 12:00:20 +00:00
|
|
|
CMD ["apachectl", "-D", "FOREGROUND"]
|