From 99cce09ef64ab7093f0e8b2f3d7ea2e29d774247 Mon Sep 17 00:00:00 2001 From: c6ristian Date: Mon, 29 Jul 2024 21:28:58 +0200 Subject: [PATCH] Squashed commit of the following: commit 59d03f97a3f429e2035da30c079fd6c5277d9eec Author: c6ristian Date: Mon Jul 29 20:15:58 2024 +0200 explain why the COPY step exists commit 2fd26d6f6f6ae0fdb2991561de5cf71763904853 Author: c6ristian Date: Mon Jul 29 19:55:52 2024 +0200 no keep var run commit cc2f0cdc8109083f24dc9c0491b6870bf964f92e Author: c6ristian Date: Mon Jul 29 19:53:52 2024 +0200 no keep var log commit 88569e05f515cb06f2898b297e150c6988da8c1c Author: c6ristian Date: Mon Jul 29 19:46:31 2024 +0200 COPY .keep commit 1eca9841675fde50a229f6272918e4bb83dfa6d0 Author: c6ristian Date: Mon Jul 29 19:21:50 2024 +0200 nextcloud: try a .keep file to save the folder --- nextcloud/.keep | 0 nextcloud/Containerfile | 7 +++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 nextcloud/.keep diff --git a/nextcloud/.keep b/nextcloud/.keep new file mode 100644 index 0000000..e69de29 diff --git a/nextcloud/Containerfile b/nextcloud/Containerfile index 5a3c30d..d139a4d 100644 --- a/nextcloud/Containerfile +++ b/nextcloud/Containerfile @@ -4,10 +4,13 @@ FROM docker.io/library/nextcloud:${TAG} RUN apt-get update \ && apt-get install -y supervisor \ && rm -rf /var/lib/apt/lists/* \ - && mkdir /var/log/supervisord /var/run/supervisord + && mkdir -p /var/log/supervisord /var/run/supervisord + +# We need to copy a file to the supervisord folder in /var/run so it exists when the container starts. +COPY .keep /var/run/supervisord/ COPY supervisord.conf / ENV NEXTCLOUD_UPDATE=1 -CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] +CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] \ No newline at end of file