docker + supercronic
Use -debug to make it more verbose.
docker-compose.yml:
services:
supercronic:
build: .
command: supercronic crontabDockerfile:
FROM alpine:3.17
RUN set -x \
&& apk add --no-cache supercronic shadow \
&& useradd -m app
USER app
COPY crontab .Dockerfile (before Alpine Linux 3.15):
FROM alpine:3.17
RUN set -x \
&& apk add --no-cache go
RUN go install github.com/aptible/[email protected]
FROM alpine:3.17
RUN set -x \
&& apk add --no-cache shadow \
&& useradd -m app
USER app
COPY --from=0 /root/go/bin/supercronic /usr/local/bin/supercronic
COPY crontab .crontab:
* * * * * date
@x-yuri I think you meant
FROM alpine:3.14instead ofFROM alpine:3.17in the secondDockerfilesample.