Loading Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -16,4 +16,5 @@ USER nobody CMD [ "supersonic", "/crontab" ] HEALTHCHECK CMD pgrep supersonic RUN supersonic -test /crontab ONBUILD COPY crontab /crontab ONBUILD RUN supersonic -test /crontab README.md +6 −4 Original line number Diff line number Diff line Loading @@ -18,14 +18,16 @@ FROM alpine:latest COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/ ``` The other pattern is building on top of this image to run some periodic tasks like so: The other pattern is building on top of this image to run some periodic tasks. The `ONBUILD` commands will copy the crontab file and validate it. Just copy whatever scripts and install whatever packages you need, like so: ``` FROM registry.shore.co.il/cron RUN apk add --update --no-cache aws-cli COPY crontab /crontab COPY script /usr/local/bin/ USER root RUN apk add --update --no-cache aws-cli USER nobody ``` ## License Loading Loading
Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -16,4 +16,5 @@ USER nobody CMD [ "supersonic", "/crontab" ] HEALTHCHECK CMD pgrep supersonic RUN supersonic -test /crontab ONBUILD COPY crontab /crontab ONBUILD RUN supersonic -test /crontab
README.md +6 −4 Original line number Diff line number Diff line Loading @@ -18,14 +18,16 @@ FROM alpine:latest COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/ ``` The other pattern is building on top of this image to run some periodic tasks like so: The other pattern is building on top of this image to run some periodic tasks. The `ONBUILD` commands will copy the crontab file and validate it. Just copy whatever scripts and install whatever packages you need, like so: ``` FROM registry.shore.co.il/cron RUN apk add --update --no-cache aws-cli COPY crontab /crontab COPY script /usr/local/bin/ USER root RUN apk add --update --no-cache aws-cli USER nobody ``` ## License Loading