Spaces:
Sleeping
Sleeping
pengdaqian
commited on
Commit
•
be85521
1
Parent(s):
807503c
init scan
Browse files- Dockerfile +1 -1
- scan.py +1 -1
Dockerfile
CHANGED
@@ -12,4 +12,4 @@ RUN pip3 install -r requirements.txt
|
|
12 |
|
13 |
COPY . .
|
14 |
|
15 |
-
CMD ["sh", "-c", "
|
|
|
12 |
|
13 |
COPY . .
|
14 |
|
15 |
+
CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
|
scan.py
CHANGED
@@ -38,7 +38,7 @@ def scan_file(file_path: str):
|
|
38 |
|
39 |
|
40 |
def init_clamd():
|
41 |
-
clamd = pyclamd.ClamdUnixSocket(
|
42 |
return clamd
|
43 |
|
44 |
|
|
|
38 |
|
39 |
|
40 |
def init_clamd():
|
41 |
+
clamd = pyclamd.ClamdUnixSocket()
|
42 |
return clamd
|
43 |
|
44 |
|