yarascanner/Dockerfile
Tyler 636fb3cff9
All checks were successful
continuous-integration/drone/push Build is passing
Use yara from apk
2021-10-04 22:17:26 -04:00

18 lines
479 B
Docker

FROM golang:alpine AS builder
RUN mkdir -p /build/src
RUN apk add --no-cache autoconf automake libtool make gcc g++ openssl-dev pkgconfig
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara
ADD . /build/src
RUN cd /build/src \
&& go build -o /build/yarascanner
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
CMD "/usr/bin/yarascanner"