From 8883435fd846f1f8e65fb10cb895cbdbb3bdb8fb Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 24 Feb 2021 21:49:20 -0500 Subject: [PATCH] Compile yara --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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