summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile18
-rw-r--r--go.mod4
-rw-r--r--go.sum8
3 files changed, 8 insertions, 22 deletions
diff --git a/Dockerfile b/Dockerfile
index e13b19d..f7d5bc9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,22 +2,8 @@ FROM golang:alpine as build
2WORKDIR /app 2WORKDIR /app
3 3
4# install build dependencies 4# install build dependencies
5RUN apk add --no-cache \ 5RUN apk add --no-cache build-base git && \
6 build-base \ 6 apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara-dev
7 automake \
8 autoconf \
9 pkgconfig \
10 libtool \
11 bison \
12 libressl-dev \
13 git
14
15# install YARA
16RUN git clone --depth 1 https://github.com/virustotal/yara.git \
17 && cd yara \
18 && sh ./build.sh \
19 && make install \
20 && cd ..
21 7
22# copy and build PMF 8# copy and build PMF
23COPY . . 9COPY . .
diff --git a/go.mod b/go.mod
index d886043..c2e4b32 100644
--- a/go.mod
+++ b/go.mod
@@ -3,8 +3,8 @@ module github.com/jvoisin/php-malware-finder
3go 1.16 3go 1.16
4 4
5require ( 5require (
6 github.com/hillu/go-yara/v4 v4.2.3 6 github.com/hillu/go-yara/v4 v4.2.4
7 github.com/jessevdk/go-flags v1.5.0 7 github.com/jessevdk/go-flags v1.5.0
8) 8)
9 9
10require golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect 10require golang.org/x/sys v0.4.0 // indirect
diff --git a/go.sum b/go.sum
index a23f60f..cba8a2b 100644
--- a/go.sum
+++ b/go.sum
@@ -1,7 +1,7 @@
1github.com/hillu/go-yara/v4 v4.2.3 h1:Gazusex0rkL8NCMjc2vXqKBIHZ4kiBlLdMt2DuvhL4A= 1github.com/hillu/go-yara/v4 v4.2.4 h1:r3KB1XV+h6q+N8bvK6/gLpxAVcd6baYzmOSYHzNo9QQ=
2github.com/hillu/go-yara/v4 v4.2.3/go.mod h1:AHEs/FXVMQKVVlT6iG9d+q1BRr0gq0WoAWZQaZ0gS7s= 2github.com/hillu/go-yara/v4 v4.2.4/go.mod h1:AHEs/FXVMQKVVlT6iG9d+q1BRr0gq0WoAWZQaZ0gS7s=
3github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= 3github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=
4github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= 4github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
5golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 5golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
6golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k= 6golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
7golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 7golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=