-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 805 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 805 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
FROM golang:1.14.3-alpine AS build
RUN apk add git
RUN apk add pkgconfig
RUN apk add gcc
RUN apk add make
RUN apk add g++
RUN apk add libstdc++
RUN apk add libsigc++
RUN apk add libtool
RUN apk add automake
RUN apk add autoconf
RUN apk add libressl-dev
RUN apk add jansson
RUN apk add jansson-dev
RUN apk add libmagic
WORKDIR /src
RUN wget https://github.com/VirusTotal/yara/archive/refs/tags/v4.1.0.tar.gz && mkdir yara && cd yara && tar xf ../v4.1.0.tar.gz \
&& cd yara-4.1.0/ && ./bootstrap.sh && ./configure --enable-cuckoo --enable-magic --enable-dotnet && make && make install
COPY . .
RUN go get github.com/EFForg/yaya && cd $GOPATH/src/github.com/EFForg/yaya && go build && go install
RUN mkdir /out/
RUN yaya update && yaya export /out/yaya.rules
COPY --from=yaya /out/yaya.rules ./