e9b5772dae
New NEXTCLOUD_EXEC_USER environment variable added which allows control over which user is used to execute cron tasks inside the Nextcloud container. By default, the user is `www-data`. If the environment variable is specified but empty, no `--user` option is provided to `docker exec`.
16 lines
326 B
Docker
16 lines
326 B
Docker
FROM alpine
|
|
|
|
RUN apk add --no-cache docker bash
|
|
|
|
ENV NEXTCLOUD_EXEC_USER=www-data
|
|
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"]
|