mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-02-01 18:41:35 -05:00
This dockerfile allows users/services compile the current codebase and use the container as a dockerized clamav daemon. Useful for testing, but also for running clamd containerized. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
15 lines
214 B
Bash
Executable File
15 lines
214 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then
|
|
if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then
|
|
echo "ERROR: Unable to contact server"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Clamd is up"
|
|
fi
|
|
|
|
exit 0
|