17 lines
473 B
Docker
17 lines
473 B
Docker
FROM golang:1.21.8-bullseye@sha256:81d98548f08e22a59c5c0be814acc0997f3dfd3313487adcf4e1d3d962af3a43 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"]
|