-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (45 loc) · 1.1 KB
/
Dockerfile
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
48
49
FROM python:3.7-alpine AS yara
MAINTAINER Wyatt Roersma <[email protected]>
ENV YARA_VERSION 3.11
RUN apk add --no-cache \
openssl \
file \
jansson \
bison \
python \
tini \
su-exec
RUN apk add --no-cache -t .build-deps \
py-setuptools \
openssl-dev \
jansson-dev \
python-dev \
build-base \
libc-dev \
file-dev \
automake \
autoconf \
libtool \
flex \
git \
&& set -x \
&& echo "Install Yara from source..." \
&& cd /tmp/ \
&& git clone --recursive --branch v$YARA_VERSION https://github.com/VirusTotal/yara.git \
&& cd /tmp/yara \
&& ./bootstrap.sh \
&& sync \
&& ./configure --with-crypto \
--enable-magic \
--enable-cuckoo \
--enable-dotnet \
&& make \
&& make install \
&& echo "Install yara-python..." \
&& cd /tmp/ \
&& git clone --recursive --branch v$YARA_VERSION https://github.com/VirusTotal/yara-python \
&& cd yara-python \
&& python setup.py build --dynamic-linking \
&& python setup.py install \
&& rm -rf /tmp/* \
&& apk del --purge .build-deps