added clamav-dev for rar support

This commit is contained in:
schokostreuer
2020-01-31 23:47:00 +01:00
parent e6ba36266d
commit 87f7bfa0e3
2 changed files with 37 additions and 2 deletions

View File

@@ -5,12 +5,13 @@ ARG PGID=1001
MAINTAINER tabledevil MAINTAINER tabledevil
RUN apk add -u clamav RUN apk add -u clamav
RUN apk add -u clamav-dev
RUN apk add -u freshclam RUN apk add -u freshclam
RUN freshclam RUN freshclam
ADD start.sh /start.sh
RUN chmod +x /start.sh
RUN addgroup -g ${PGID} user && \ RUN addgroup -g ${PGID} user && \
adduser -D -u ${PUID} -G user user adduser -D -u ${PUID} -G user user
USER user USER user

34
start.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
function start_service() {
echo -n "Starting Service... "
/etc/init.d/kesl-supervisor start && echo "Done!" || echo "Failed!"
}
case "${1}" in
shell )
echo "stage: ${1}"
start_service
echo "Usage:"
cat /root/readme
/bin/bash
;;
version )
echo "stage: ${1}"
start_service
kesl-control -S --app-info | grep -v '^$'
;;
scan )
echo "stage: ${1}"
start_service
echo "Starting Scan of /data:"
kesl-control --scan-file --action Skip /data
echo "Found Threats"
kesl-control -E --query 'EventType == "ThreatDetected"'
;;
debug )
echo "stage: ${1}"
echo "Usage:"
cat /root/readme
/bin/bash
;;
esac