fps-connect/clamav (cb2c956601b220199d0581137f7a6747478fc079)
Published 2026-10-30 19:15:12 +00:00 by Futur-Forgejo
Installation
docker pull code.futurholding.com/futur-forgejo/fps-connect/clamav:cb2c956601b220199d0581137f7a6747478fc079sha256:20702ae81f342c5475d86ace6b3831bf078f07a485fabcc4471e82283334b0c6Image layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1793059200' |
| RUN sed -i 's|deb.debian.org|ftp.nl.debian.org|g' /etc/apt/sources.list.d/*.sources 2>/dev/null || true |
| RUN apt-get -o Acquire::Retries=20 -o Acquire::ForceIPv4=true -o Acquire::http::Dl-Limit=800 update && apt-get -o Acquire::Retries=20 -o Acquire::ForceIPv4=true -o Acquire::http::Dl-Limit=800 install -y --no-install-recommends clamav clamav-daemon clamav-freshclam ca-certificates && rm -rf /var/lib/apt/lists/* && mkdir -p /var/run/clamav /var/log/clamav && chown -R clamav:clamav /var/lib/clamav /var/run/clamav /var/log/clamav |
| COPY config/clamav/clamd.conf /etc/clamav/clamd.conf |
| COPY config/clamav/freshclam.conf /etc/clamav/freshclam.conf |
| RUN chown clamav:clamav /etc/clamav/freshclam.conf && for poging in 1 2 3; do su clamav -s /bin/sh -c "freshclam --stdout --no-warnings" && break; echo "freshclam poging ${poging} faalde, opnieuw over 10s..."; sleep 10; done |
| RUN set -e; printf 'FPS Connect schoon testbestand\n' > /tmp/schoon.txt; clamscan --database=/var/lib/clamav --no-summary --stdout /tmp/schoon.txt; printf 'X5O!P%%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > /tmp/eicar.com; if clamscan --database=/var/lib/clamav --no-summary --stdout /tmp/eicar.com; then echo "BOUW GEFAALD: EICAR werd niet geblokkeerd — virusdefinities deugen niet" >&2; exit 1; fi; echo "Scanner-tegenproef in image geslaagd: schoon door, EICAR geblokkeerd"; rm -f /tmp/schoon.txt /tmp/eicar.com |
| COPY deploy/clamd-entrypoint.sh /usr/local/bin/clamd-entrypoint.sh |
| RUN chmod 755 /usr/local/bin/clamd-entrypoint.sh |
Details
2026-10-30 19:15:12 +00:00
Versions (19)
View all
Container
1
OCI / Docker
linux/amd64
179 MiB
bb66070c84b4b845364794ae5a74768e1637df9f
2026-10-30
a021bd0dcab86e9d07d5f27b1747af37da774983
2026-10-30
c9faeab66bc0a230afbdaa0f75eae2b5416b3412
2026-10-30
cb2c956601b220199d0581137f7a6747478fc079
2026-10-30
57a2640f7f07ecf2edeaa2e9d771e01b412fd31e
2026-10-30