pengdaqian commited on
Commit
920b2d3
·
1 Parent(s): be85521
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -12,4 +12,7 @@ RUN pip3 install -r requirements.txt
12
 
13
  COPY . .
14
 
15
- CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
 
 
 
 
12
 
13
  COPY . .
14
 
15
+ RUN mkdir -p /var/run/clamav
16
+ RUN chown -R clamav /var/run/clamav
17
+
18
+ CMD ["sh", "-c", "clamd restart && && chown -R clamav /tmp/clamd.pid && python3 scan_main.py"]