pengdaqian commited on
Commit
0d1630d
1 Parent(s): 78f8a0c
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -7,9 +7,12 @@ RUN apk update && apk add --no-cache \
7
 
8
  RUN mkdir -p /run/clamav
9
  RUN chmod -R 777 /run/clamav
 
 
10
 
11
- RUN adduser --disabled-password --uid 1000 user
12
 
 
13
  USER user
14
 
15
  ENV HOME=/home/user \
@@ -23,4 +26,4 @@ RUN pip3 install --no-cache-dir -r requirements.txt
23
 
24
  COPY . .
25
 
26
- CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
 
7
 
8
  RUN mkdir -p /run/clamav
9
  RUN chmod -R 777 /run/clamav
10
+ RUN mkdir -p /var/lib/clamav
11
+ RUN chmod -R 777 /var/lib/clamav
12
 
13
+ RUN clamd restart
14
 
15
+ RUN adduser --disabled-password --uid 1000 user
16
  USER user
17
 
18
  ENV HOME=/home/user \
 
26
 
27
  COPY . .
28
 
29
+ CMD ["sh", "-c", "python3 scan_main.py"]