forked from openbridge/clamav
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·37 lines (32 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
executable file
·37 lines (32 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine:3.13
MAINTAINER Thomas Spicer (thomas@openbridge.com)
ENV CLAMD_DEPS \
git \
linux-headers
RUN set -x \
&& apk add --no-cache --virtual .persistent-deps \
bash \
coreutils \
wget \
findutils \
perl \
curl \
clamav-daemon \
clamav-libunrar \
freshclam \
monit \
&& apk add --no-cache --virtual .build-deps \
$CLAMD_DEPS \
&& chmod +x /usr/bin/ \
&& mkdir -p /var/lib/clamav /run/clamav/ \
&& chown -R clamav:clamav /var/lib/clamav/ \
&& apk del .build-deps
COPY usr/bin/crond.sh /usr/bin/cron
COPY usr/bin/clamd.sh /usr/bin/clam
COPY etc/ /etc/
COPY tests/ /tests/
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod -R +x /docker-entrypoint.sh /usr/local/bin /usr/bin /tests
EXPOSE 3310
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/clamd", "-c", "/etc/clamd.conf"]