yarascanner/Dockerfile
Tyler 75e9a42a51
All checks were successful
continuous-integration/drone/push Build is passing
Use Yara 4.0.5, update api
2021-02-24 22:00:39 -05:00

19 lines
509 B
Docker

FROM golang:alpine AS builder
RUN mkdir -p /build/src
ADD https://github.com/VirusTotal/yara/archive/v4.0.4.tar.gz /build/yara-4.0.4.tar.gz
RUN apk add --no-cache autoconf automake libtool make gcc g++ openssl-dev pkgconfig
RUN cd /build; tar xvf yara-4.0.4.tar.gz; cd yara-4.0.4; ./bootstrap.sh; ./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"