diff --git a/Dockerfile b/Dockerfile index f4d5581..fe980d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ FROM golang:alpine AS builder -RUN mkdir -p /build/src +RUN mkdir -p /build/src; mkdir -p /build/yara + +ADD https://github.com/VirusTotal/yara/archive/v4.0.5.tar.gz /build/yara/src.tar.gz + +RUN apk add --no-cache automake libtool make gcc +RUN cd /build/yara; tar xvf src.tar.gz; ./configure; make; make install ADD . /build/src