-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.base
47 lines (40 loc) · 1.78 KB
/
Dockerfile.base
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
38
39
40
41
42
43
44
45
46
47
FROM debian:jessie
LABEL maintainer "https://github.com/blacktop"
LABEL malice.plugin.repository = "https://github.com/maliceio/malice-fprot.git"
LABEL malice.plugin.category="av"
LABEL malice.plugin.mime="*"
LABEL malice.plugin.docker.engine="*"
ENV GO_VERSION 1.8.3
RUN buildDeps='ca-certificates \
build-essential \
mercurial \
git-core \
unzip \
wget' \
&& set -x \
&& apt-get update -qq \
&& apt-get install -yq $buildDeps libc6-i386 --no-install-recommends \
&& set -x \
&& echo "===> Install F-PROT..." \
&& wget https://github.com/maliceio/malice-av/raw/master/fprot/fp-Linux.x86.32-ws.tar.gz \
-O /tmp/fp-Linux.x86.32-ws.tar.gz \
&& tar -C /opt -zxvf /tmp/fp-Linux.x86.32-ws.tar.gz \
&& ln -fs /opt/f-prot/fpscan /usr/local/bin/fpscan \
&& ln -fs /opt/f-prot/fpscand /usr/local/sbin/fpscand \
&& ln -fs /opt/f-prot/fpmon /usr/local/sbin/fpmon \
&& cp /opt/f-prot/f-prot.conf.default /opt/f-prot/f-prot.conf \
&& ln -fs /opt/f-prot/f-prot.conf /etc/f-prot.conf \
&& chmod a+x /opt/f-prot/fpscan \
&& chmod u+x /opt/f-prot/fpupdate \
&& ln -fs /opt/f-prot/man_pages/scan-mail.pl.8 /usr/share/man/man8/ \
&& echo "===> Install Go..." \
&& ARCH="$(dpkg --print-architecture)" \
&& wget -q https://storage.googleapis.com/golang/go$GO_VERSION.linux-$ARCH.tar.gz -O /tmp/go.tar.gz \
&& tar -C /usr/local -xzf /tmp/go.tar.gz
# Add EICAR Test Virus File to malware folder
ADD http://www.eicar.org/download/eicar.com.txt /malware/EICAR
# Update F-PROT Definitions
RUN /opt/f-prot/fpupdate
# http://files.f-prot.com/files/unix-trial/fp-Linux.x86.64-fs.tar.gz
# http://files.f-prot.com/files/unix-trial/fp-Linux.x86.32-ws.tar.gz
# http://files.f-prot.com/files/unix-trial/fp-Linux.x86.64-ws.tar.gz