nextcloud-cronjob/Dockerfile
Robert Dailey ab6372fa79 Provide the ability to run user-defined cron tasks
Mount individual shell scripts (with the `*.sh` extension) inside `/cron-scripts/` in the
container. The cron daemon will automatically run these scripts inside the Nextcloud
container for you. Write the scripts as if they will run in the Nextcloud container
itself.
2018-12-06 17:58:26 -06:00

16 lines
293 B
Docker

FROM alpine
RUN apk add --no-cache docker bash
ENV NEXTCLOUD_CONTAINER_NAME=
ENV NEXTCLOUD_PROJECT_NAME=
ENV NEXTCLOUD_CRON_MINUTE_INTERVAL=15
COPY scripts/*.sh /
COPY scripts/cron-scripts /cron-scripts
ENTRYPOINT ["/entrypoint.sh"]
HEALTHCHECK --timeout=5s \
CMD ["/healthcheck.sh"]