yarascanner/Dockerfile

19 lines
539 B
Docker
Raw Permalink Normal View History

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
2024-03-29 01:50:12 +00:00
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara yara-dev
2021-02-25 02:46:02 +00:00
ADD . /build/src
2024-03-29 01:50:12 +00:00
RUN export PKG_CONFIG_PATH=/usr/lib/pkgconfig && \
cd /build/src \
2021-02-25 02:46:02 +00:00
&& 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"