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"