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.

16 lines
264 B

  1. FROM golang:1.17-alpine3.13 as builder
  2. ENV GO111MODULE=on
  3. WORKDIR /go/src/app
  4. COPY .. .
  5. RUN go build -v
  6. FROM alpine:3.13 AS server
  7. WORKDIR /app
  8. COPY --from=builder /go/src/app/pinned-package-updater .
  9. ENTRYPOINT ["/app/pinned-package-updater"]
  10. CMD ["serve"]