pengdaqian commited on
Commit
af28c56
1 Parent(s): 4e4d37d
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -13,11 +13,13 @@ RUN chmod -R 777 /var/lib/clamav
13
  RUN clamd restart
14
 
15
  RUN adduser --disabled-password --uid 1000 user
16
- RUN chown user:user /var/lib/clamav/bytecode.cvd
17
- RUN chown user:user /var/lib/clamav/daily.cvd
18
- RUN chown user:user /var/lib/clamav/daily.cvd
19
- RUN chown user:user /var/lib/clamav/main.cvd
20
- RUN chown user:user /var/lib/clamav
 
 
21
  RUN ls -lha /var/lib/clamav
22
 
23
  USER user
 
13
  RUN clamd restart
14
 
15
  RUN adduser --disabled-password --uid 1000 user
16
+ RUN addgroup -S clamav && adduser -S user -G clamav
17
+
18
+ RUN chown clamav:user /var/lib/clamav/bytecode.cvd
19
+ RUN chown clamav:user /var/lib/clamav/daily.cvd
20
+ RUN chown clamav:user /var/lib/clamav/daily.cvd
21
+ RUN chown clamav:user /var/lib/clamav/main.cvd
22
+ RUN chown clamav:user /var/lib/clamav
23
  RUN ls -lha /var/lib/clamav
24
 
25
  USER user