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

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

WORKDIR /app

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY . .

RUN mkdir -p /var/run/clamav
RUN chown -R clamav /var/run/clamav
RUN touch /tmp/clamd.pid
RUN chown -R clamav /tmp/clamd.pid

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