feed_archiver/Dockerfile

15 lines
277 B
Docker

# Build
FROM golang:1.13 as go_build
WORKDIR /build/
COPY main.go .
COPY go.mod .
RUN GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -o feed_archiver .
FROM scratch
WORKDIR /root/
COPY --from=go_build ["/build/feed_archiver", "/root/"]
CMD ["/root/feed_archiver"]