Operator for CronJob resources
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.

18 lines
320 B

FROM golang:1.15-alpine
RUN apk update
RUN apk add git mercurial
WORKDIR /app/operator
COPY . .
WORKDIR /app/operator/cmd/manager
RUN CGO_ENABLED=0 go build -mod=vendor
RUN go install -mod=vendor
FROM alpine:3.11
COPY --from=0 /go/bin/manager /usr/local/bin/cron-operator
ENTRYPOINT ["/usr/local/bin/entrypoint"]