wordpress/Dockerfile.cron

13 lines
690 B
Docker
Raw Normal View History

2024-11-02 00:34:18 +01:00
ARG WP_VERSION=6.1.0
FROM ghcr.io/n0rthernl1ghts/wordpress:${WP_VERSION}
# Disable all s6 services except for svc-crond and init-wpconfig-verify
RUN set -eux \
&& bash -c "rm -rf /etc/s6-overlay/s6-rc.d/{svc-unitd,init-unitd-configure,init-verify-wordpress,init-install-wordpress,init-install-resources,init-webuser-permissions,init-wpcontent} \
&& rm -rf /etc/s6-overlay/s6-rc.d/user/contents.d/{svc-unitd,init-unitd-configure,init-verify-wordpress,init-install-wordpress,init-install-resources,init-webuser-permissions,init-wpcontent} \
&& rm -rf /etc/s6-overlay/s6-rc.d/svc-crond/dependencies.d/{init-install-wordpress,svc-unitd}"
ENV CRON_ENABLED=true