-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:20.04
MAINTAINER [email protected]
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Berlin
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get -y install apache2 libapache2-mod-wsgi-py3 libapache2-mod-python vim python3-all python3-pip
RUN apt-get -y install python3-cherrypy3 python3-jinja2 python3-pymongo python3-requests python3-pil
RUN pip3 install -U --force-reinstall pip
RUN pip3 install maxminddb
RUN pip3 install maxminddb-geolite2
RUN mkdir -p /var/run/apache2
RUN a2enmod rewrite
RUN a2enmod proxy
RUN a2enmod proxy_http
RUN a2enmod proxy_http2
RUN a2enmod proxy_html
RUN a2enmod remoteip
RUN a2enmod wsgi
RUN a2enmod ssl
RUN a2dismod python
RUN ln -sf /proc/self/fd/1 /var/log/apache2/access.log && \
ln -sf /proc/self/fd/1 /var/log/apache2/error.log
EXPOSE 80
EXPOSE 443
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]