pengdaqian commited on
Commit
be85521
1 Parent(s): 807503c
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. scan.py +1 -1
Dockerfile CHANGED
@@ -12,4 +12,4 @@ RUN pip3 install -r requirements.txt
12
 
13
  COPY . .
14
 
15
- CMD ["sh", "-c", "freshclam && python3 scan_main.py"]
 
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(filename='/tmp/clamd.sock')
42
  return clamd
43
 
44
 
 
38
 
39
 
40
  def init_clamd():
41
+ clamd = pyclamd.ClamdUnixSocket()
42
  return clamd
43
 
44