nextcloud-supervisord/Dockerfile

40 lines
1.1 KiB
Docker
Raw Normal View History

2023-03-28 19:55:30 -04:00
# Base image
ARG NEXTCLOUD_VER
2023-04-16 22:31:08 -04:00
FROM nextcloud:${NEXTCLOUD_VER}-apache
2023-03-28 19:55:30 -04:00
# Install extra utilities
RUN apt update && \
apt install -y --no-install-recommends \
2023-04-16 22:31:08 -04:00
# sudo \
2023-03-28 19:55:30 -04:00
nano \
nfs-common \
libreoffice \
libreoffice-java-common \
default-jre \
imagemagick \
ghostscript \
smbclient \
iputils-ping \
ffmpeg \
procps \
supervisor && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/log/supervisord /var/run/supervisord
# Add supervisord and ImageMagick configuration
COPY supervisord.conf /
COPY policy.xml /etc/ImageMagick-6/policy.xml
# Set custom php configuration
RUN echo "redis.session.locking_enabled=1" >> /usr/local/etc/php/conf.d/docker-php-ext-redis.ini && \
echo "redis.session.lock_retries=-1" >> /usr/local/etc/php/conf.d/docker-php-ext-redis.ini && \
echo "redis.session.lock_wait_time=10000" >> /usr/local/etc/php/conf.d/docker-php-ext-redis.ini && \
echo "session.gc_maxlifetime=86400" >> /usr/local/etc/php/conf.d/nextcloud.ini
ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]