nextcloud-supervisord/Dockerfile

40 lines
1.1 KiB
Docker

# Base image
ARG NEXTCLOUD_VER
FROM nextcloud:${NEXTCLOUD_VER}-fpm
# Install extra utilities
RUN apt update && \
apt install -y --no-install-recommends \
sudo \
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"]