Update docker/clam/Dockerfile
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2024-10-29 16:17:44 -04:00
parent d9ef711860
commit 64739f6f2f
1 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,22 @@
FROM alpine:latest
RUN apk add --no-cache clamav clamav-libunrar
# Install ClamAV, dependencies, and curl
RUN apk add --no-cache clamav clamav-libunrar curl
# Update ClamAV definitions
RUN freshclam
# Install go-glitch
RUN curl -sSL https://git.nixc.us/Nixius/go-glitch/raw/branch/master/install.sh | bash
# Copy entrypoint script and set permissions
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Define volumes
VOLUME ["/scan"]
VOLUME ["/quarantine"]
VOLUME ["/var/log/clamav"]
# Set entrypoint
ENTRYPOINT ["docker-entrypoint.sh"]