-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile.dev
31 lines (27 loc) · 1.1 KB
/
Dockerfile.dev
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
FROM malice/alpine
LABEL maintainer "https://github.com/blacktop"
COPY . /src/github.com/maliceio/malice-pdf
RUN apk --update add --no-cache python
RUN apk --update add --no-cache -t .build-deps \
openssl-dev \
build-base \
python-dev \
libffi-dev \
musl-dev \
libc-dev \
py-pip \
gcc \
git \
&& echo "===> Install PDF Scanner..." \
&& cd /src/github.com/maliceio/malice-pdf \
&& export PIP_NO_CACHE_DIR=off \
&& export PIP_DISABLE_PIP_VERSION_CHECK=on \
&& pip install --upgrade pip wheel \
&& echo " [*] Install requirements..." \
# && pip install -U -r requirements.txt \
&& chmod +x pdf.py \
&& ln -s /src/github.com/maliceio/malice-pdf/pdf.py /bin/pdfscan \
&& apk del --purge .build-deps
WORKDIR /malware
ENTRYPOINT ["su-exec","malice","/sbin/tini","--","pdfscan"]
CMD ["--help"]