diff options
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 . . |
