forked from c2siorg/Scan8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 759 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
FROM ubuntu:18.04
#Installing Python ClamAV
RUN apt-get update -y && \
apt-get install -y python3-pip python-dev \
&& apt-get install clamav clamav-daemon -y\
&& mkdir /run/clamav/ && touch /run/clamav/clamd.pid && touch /run/clamav/clamd.sock\
&& chmod -R 777 /run/clamav\
&& chmod a+rwx /var/log/clamav/
#running freshclam for downloading virus definations
RUN freshclam
#working Directory
WORKDIR /app
#copying script which will run python files and clamAV daemon
COPY entryPoint.sh /app/
#copying required modules and files into the container
COPY ./Worker /app/Worker
COPY ./Utilities /app/Utilities
COPY .env /app/
#installing Modules
RUN pip3 install -r Worker/requirements.txt
ENTRYPOINT [ "/app/entryPoint.sh" ]