yarascanner/Dockerfile
Tyler 6a1d9c730f
Some checks failed
continuous-integration/drone/push Build is failing
Compile yara
2021-02-24 21:50:12 -05:00

19 lines
449 B
Docker

FROM golang:alpine AS builder
RUN mkdir -p /build/src
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; tar xvf src.tar.gz; cd yara-4.0.5; ./configure; make; make install
ADD . /build/src
RUN cd /build/src \
&& go build -o /build/yarascanner
FROM alpine:3
COPY --from=builder /build/yarascanner /usr/bin/yarascanner
CMD "/usr/bin/yarascanner"