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