pengdaqian commited on
Commit
e246446
1 Parent(s): 18a38eb
Files changed (2) hide show
  1. Dockerfile +1 -3
  2. init +2 -2
Dockerfile CHANGED
@@ -28,8 +28,6 @@ RUN ls -lha /var/lib/clamav
28
 
29
  USER user
30
 
31
- RUN clamd restart
32
-
33
  ENV HOME=/home/user \
34
  PATH=/home/user/.local/bin:$PATH
35
 
@@ -48,4 +46,4 @@ COPY --chown=user init /init
48
  RUN chmod +x /init
49
  COPY . .
50
 
51
- CMD ["sh", "-c", "python3 scan_main.py"]
 
28
 
29
  USER user
30
 
 
 
31
  ENV HOME=/home/user \
32
  PATH=/home/user/.local/bin:$PATH
33
 
 
46
  RUN chmod +x /init
47
  COPY . .
48
 
49
+ CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
init CHANGED
@@ -32,8 +32,8 @@ else
32
  # else default to running clamav's servers
33
 
34
  # Help tiny-init a little
35
- mkdir -p "/run/lock"
36
- ln -f -s "/run/lock" "/var/lock"
37
 
38
  # Ensure we have some virus data, otherwise clamd refuses to start
39
  if [ ! -f "/var/lib/clamav/main.cvd" ]; then
 
32
  # else default to running clamav's servers
33
 
34
  # Help tiny-init a little
35
+ # mkdir -p "/run/lock"
36
+ # ln -f -s "/run/lock" "/var/lock"
37
 
38
  # Ensure we have some virus data, otherwise clamd refuses to start
39
  if [ ! -f "/var/lib/clamav/main.cvd" ]; then