Image warm for Kubernetes
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.

19 lines
327B

  1. FROM golang:1.14
  2. RUN apt update
  3. RUN apt install -y git mercurial
  4. WORKDIR /app/operator
  5. COPY . .
  6. WORKDIR /app/operator/cmd/manager
  7. RUN CGO_ENABLED=0 go build -mod=vendor
  8. RUN go install -mod=vendor
  9. FROM ubuntu:20.04
  10. COPY --from=0 /go/bin/manager /usr/local/bin/warm-image-operator
  11. ENTRYPOINT ["/usr/local/bin/entrypoint"]