-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (24 loc) · 918 Bytes
/
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
FROM nginx:1.25
# check server cert from konnektor
ENV SSL_VERIFY on
# check client cert for incomming connections
ENV SSL_VERIFY_CLIENT on
# icap server - only hostname
ENV ICAP_HOST host.containers.internal
# icap service name - default works with c-icap
ENV ICAP_SERVICE icap://any/avscan
# one of DEBUG INFO WARNING ERROR CRITICAL
ENV LOG_LEVEL INFO
# Timezone is needed for installing uwsgi
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get -y update \
&& apt-get -y install net-tools nginx supervisor gettext-base uwsgi uwsgi-plugin-python3 python3 python3-pip
COPY requirements.txt wsgi.py /app/
RUN pip3 install -r /app/requirements.txt --break-system-packages
COPY avgate/avgate.py /app/avgate/
COPY avgate/replacements/ /app/avgate/replacements/
COPY docker/ /app/
RUN chmod u+x /app/startup.sh
ENTRYPOINT ["/app/startup.sh"]
EXPOSE 443