Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
920b2d3
1
Parent(s):
be85521
init scan
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -12,4 +12,7 @@ RUN pip3 install -r requirements.txt
|
|
12 |
|
13 |
COPY . .
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
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"]
|