docker
+ supercronic
Use -debug
to make it more verbose.
docker-compose.yml
:
services:
supercronic:
build: .
command: supercronic crontab
Dockerfile
:
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/supercronic@v0.2.1
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.14
instead ofFROM alpine:3.17
in the secondDockerfile
sample.