ab6372fa79
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.
15 lines
293 B
Docker
15 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"]
|