@ -0,0 +1,17 @@
FROM golang:1.17-alpine3.13 as builder
ENV GO111MODULE=on
WORKDIR /go/src/app
COPY .. .
RUN go build -v
FROM alpine:3.13 AS server
WORKDIR /app
COPY --from=builder /go/src/app/pinned-package-updater .
ENTRYPOINT ["/app/pinned-package-updater"]
CMD ["serve"]
FROM golang:1.17-buster as builder
FROM debian:buster AS server