dockerfile_master 863 Bytes
Newer Older
1
2
FROM httpd:latest

3
4
ARG UID=<UID>

5
ENV HTTPD_CONF="/usr/local/apache2/conf/httpd.conf"
olaf michaelis's avatar
olaf michaelis committed
6
ENV HTTPD_VHOSTS="/usr/local/apache2/conf.d/vhosts.conf"
7
8

RUN apt update -y && apt install -y \
9
    curl \
10
11
12
13
    python-psycopg2 \
    libexpat1  \
    apache2-utils \
    ssl-cert \
14
15
16
    python3 \
    python3-dev \
    python3-pip \
17
18
19
    libapache2-mod-wsgi-py3 \
    pandoc \
    texlive-xetex
20
21
22
23
24

RUN echo "LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so" >> ${HTTPD_CONF} \
 && echo "IncludeOptional conf.d/*.conf" >> ${HTTPD_CONF}

RUN mkdir -p /usr/local/apache2/conf.d
olaf michaelis's avatar
olaf michaelis committed
25
26
27
COPY ./vhosts.conf "${HTTPD_VHOSTS}"

COPY ./drun.sh /drun.sh
olaf michaelis's avatar
olaf michaelis committed
28
COPY ./healthcheck.sh /healthcheck.sh
29

30
RUN useradd -m -u $UID -s /bin/bash rdmo
31
32
RUN mkdir -p /var/www/html
RUN mkdir -p /var/run/apache2
33
34

HEALTHCHECK --timeout=10s --interval=20s --retries=3 \
olaf michaelis's avatar
olaf michaelis committed
35
   CMD /healthcheck.sh
olaf michaelis's avatar
olaf michaelis committed
36
37

CMD ["/drun.sh"]