docker-reverse-proxy/Dockerfile

14 lines
675 B
Docker
Raw Normal View History

2018-12-28 22:25:20 +00:00
FROM debian:stretch
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
2018-12-28 23:57:09 +00:00
RUN apt-get update && apt-get -y install apache2 && apt-get -y install python-certbot-apache -t stretch-backports
2018-12-28 22:25:20 +00:00
RUN a2enmod ssl proxy proxy_http rewrite headers proxy_wstunnel
EXPOSE 80
EXPOSE 443
COPY apache2.conf /etc/apache2/
COPY other-vhosts-access-log.conf /etc/apache2/conf-available/
RUN rm -f /etc/apache2/sites-enabled/*
2018-12-29 00:46:34 +00:00
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]