1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-23 16:17:35 +00:00
bramw_baserow/deploy/apache/recommended/Dockerfile
2024-05-06 12:00:20 +00:00

20 lines
602 B
Docker

FROM debian:bookworm-slim
#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
CMD ["apachectl", "-D", "FOREGROUND"]