Update clamav properly and initialize the database, related to #18
This commit is contained in:
@@ -8,6 +8,6 @@ RUN apk add --update \
|
||||
|
||||
|
||||
COPY conf /etc/clamav
|
||||
COPY start.sh /start.sh
|
||||
|
||||
|
||||
CMD ["/usr/sbin/clamd"]
|
||||
CMD ["/start.sh"]
|
||||
|
||||
10
clamav/start.sh
Executable file
10
clamav/start.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Bootstrap the database if clamav is running for the first time
|
||||
[ -f /data/main.cvd ] || freshclam
|
||||
|
||||
# Run the update daemon
|
||||
freshclam -d -c 6
|
||||
|
||||
# Run clamav
|
||||
clamd
|
||||
Reference in New Issue
Block a user