From 636fb3cff9271b9d9602e74485616cbbbf28ad9a Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 4 Oct 2021 22:17:26 -0400 Subject: [PATCH] Use yara from apk --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b2acce..723faf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,8 @@ FROM golang:alpine AS builder RUN mkdir -p /build/src -ADD https://github.com/VirusTotal/yara/archive/v4.1.2.tar.gz /build/yara-4.1.2.tar.gz - RUN apk add --no-cache autoconf automake libtool make gcc g++ openssl-dev pkgconfig -RUN cd /build; tar xvf yara-4.1.2.tar.gz; cd yara-4.1.2; ./bootstrap.sh; ./configure; make; make install +RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara ADD . /build/src @@ -14,7 +12,7 @@ RUN cd /build/src \ FROM alpine:3 +RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara COPY --from=builder /build/yarascanner /usr/bin/yarascanner -COPY --from=builder /usr/local/lib/libyara.so.4 /usr/local/lib/libyara.so.4 CMD "/usr/bin/yarascanner" \ No newline at end of file