You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
262 B

FROM golang:1.17-buster as builder
ENV GO111MODULE=on
WORKDIR /go/src/app
COPY .. .
RUN go build -v
FROM debian:buster AS server
WORKDIR /app
COPY --from=builder /go/src/app/pinned-package-updater .
ENTRYPOINT ["/app/pinned-package-updater"]
CMD ["serve"]