2021-02-25 02:46:02 +00:00
|
|
|
FROM golang:alpine AS builder
|
|
|
|
|
2021-02-25 02:50:12 +00:00
|
|
|
RUN mkdir -p /build/src
|
2021-02-25 02:49:20 +00:00
|
|
|
|
2021-02-25 02:57:40 +00:00
|
|
|
RUN apk add --no-cache autoconf automake libtool make gcc g++ openssl-dev pkgconfig
|
2021-10-05 02:17:26 +00:00
|
|
|
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara
|
2021-02-25 02:46:02 +00:00
|
|
|
|
|
|
|
ADD . /build/src
|
|
|
|
|
|
|
|
RUN cd /build/src \
|
|
|
|
&& go build -o /build/yarascanner
|
|
|
|
|
|
|
|
FROM alpine:3
|
|
|
|
|
2021-10-05 02:17:26 +00:00
|
|
|
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara
|
2021-02-25 02:46:02 +00:00
|
|
|
COPY --from=builder /build/yarascanner /usr/bin/yarascanner
|
|
|
|
|
|
|
|
CMD "/usr/bin/yarascanner"
|