2024-07-27 23:09:59 +02:00
|
|
|
ARG TAG=latest
|
|
|
|
FROM docker.io/library/nextcloud:${TAG}
|
|
|
|
|
2024-07-28 00:27:14 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y supervisor \
|
2024-07-27 23:09:59 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2024-07-29 21:28:58 +02:00
|
|
|
&& 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/
|
2024-07-27 23:09:59 +02:00
|
|
|
|
2024-07-28 03:23:18 +02:00
|
|
|
COPY supervisord.conf /
|
2024-07-27 23:09:59 +02:00
|
|
|
|
|
|
|
ENV NEXTCLOUD_UPDATE=1
|
|
|
|
|
2024-07-29 21:28:58 +02:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|