16 lines
474 B
Docker
16 lines
474 B
Docker
FROM golang:1.21.11-bullseye@sha256:44a2039507d6f9ddd3fa3c6e175721a9d8abbd5e16b66e4bc4b25e8d8fe7cb31 as build
|
|
|
|
# renovate: datasource=github-tags depName=aptible/supercronic versioning=semver
|
|
ENV SUPERCRONIC_VERSION v0.2.29
|
|
|
|
RUN set -ex; \
|
|
git clone --branch $SUPERCRONIC_VERSION https://github.com/aptible/supercronic; \
|
|
cd supercronic; \
|
|
go mod vendor; \
|
|
go install;
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /go/bin/supercronic /
|
|
|
|
CMD ["/supercronic", "/crontab"]
|