diff options
| author | Mathieu Deous | 2023-01-04 22:32:36 +0100 |
|---|---|---|
| committer | GitHub | 2023-01-04 22:32:36 +0100 |
| commit | 335412258516111a9e90cee452e4c1caf5515b1b (patch) | |
| tree | 7900fe6723421b19b3c6cab909d49b34deaa967e /Dockerfile | |
| parent | a9317e7cf8914ba41fd8da92f5fc5d42f5551a83 (diff) | |
Fix Docker image build error (#121)
* use libyara from alpine testing repo
* update dependencies
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 |
1 files changed, 2 insertions, 16 deletions
| @@ -2,22 +2,8 @@ FROM golang:alpine as build | |||
| 2 | WORKDIR /app | 2 | WORKDIR /app |
| 3 | 3 | ||
| 4 | # install build dependencies | 4 | # install build dependencies |
| 5 | RUN apk add --no-cache \ | 5 | RUN 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 | ||
| 16 | RUN 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 |
| 23 | COPY . . | 9 | COPY . . |
