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
260 B

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