File size: 401 Bytes
cb34746
 
4edc435
 
 
 
 
 
 
 
 
 
 
 
 
cb34746
 
4edc435
cb34746
 
 
c6b8d2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM clamav/clamav:stable

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

RUN apk update && apk add --no-cache \
    python3 \
    py3-pip \
    && rm -rf /var/cache/apk/*

WORKDIR $HOME/app

COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt

COPY . .

CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]