From 85d93f4e3af01cc2ab417724e813c1cbda4c2f24 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 14 Feb 2022 08:55:28 +0100 Subject: [PATCH] use kaniko to build container in ci --- Dockerfile | 3 ++- rootfs/{var/spool/cron => etc}/crontabs/nginx | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename rootfs/{var/spool/cron => etc}/crontabs/nginx (100%) diff --git a/Dockerfile b/Dockerfile index 7fc6be3..2c3c344 100644 --- a/Dockerfile +++ b/Dockerfile @@ -131,11 +131,12 @@ RUN apk add --no-cache \ php8-imap \ dcron +RUN ln -s /usr/sbin/crond /bin/crond + COPY --from=builder --chown=nginx:nginx /var/lib/nextcloud /var/lib/nextcloud RUN rm /etc/nginx/http.d/default.conf ADD /rootfs / -RUN ln -s /usr/sbin/crond /bin/crond VOLUME [ "/var/lib/nextcloud/data", "/var/lib/nextcloud/config" ] diff --git a/rootfs/var/spool/cron/crontabs/nginx b/rootfs/etc/crontabs/nginx similarity index 100% rename from rootfs/var/spool/cron/crontabs/nginx rename to rootfs/etc/crontabs/nginx