docker
+ fcron
Use -d
to make it more verbose.
docker-compose.yml
:
services:
fcron:
build: .
command: fcron -f
Dockerfile
:
FROM alpine:3.17
COPY crontab .
RUN set -x \
&& apk add --no-cache fcron shadow \
&& useradd -m app \
&& fcrontab crontab app
crontab
:
* * * * * date