forked from ConSol/ePa_av-gate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 885 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
FROM ubuntu:latest
# 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 nginx uwsgi uwsgi-plugin-python3 python3 python3-pip clamav clamav-daemon
# remove config for group on socket clamd
RUN sed -i '/^LocalSocketGroup .*$/d' /etc/clamav/clamd.conf
COPY cert/* /app/cert/
COPY replacements/* /app/replacements/
COPY docker/startup.sh /bin/
COPY docker/nginx.conf /etc/nginx/conf.d/av_gate.conf
COPY docker/uwsgi.ini /etc/uwsgi/apps-enabled/av_gate.ini
# copy initial clamav signatures to avoid cooldown
COPY docker/clamav/* /var/lib/clamav
COPY av_gate.py requirements.txt /app/
COPY docker/av_gate.ini /app/
RUN pip3 install -r /app/requirements.txt
ENTRYPOINT "/bin/startup.sh"
# expose not possible for ranges
EXPOSE 8400
EXPOSE 8401