docker-supercronic/Dockerfile

17 lines
474 B
Docker

FROM golang:1.21.10-bullseye@sha256:0ab36956c8032bed4f02e4c066d69e9709b1104b90d02ad344a7e4415dcca308 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"]