14 lines
232 B
Docker
14 lines
232 B
Docker
FROM golang:alpine AS builder
|
|
|
|
RUN mkdir -p /build/src
|
|
|
|
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" |