Files
proxmox-nextcloud/Dockerfile
2025-12-20 19:45:02 -08:00

30 lines
805 B
Docker

FROM nextcloud:latest
# Switch to root (Default is usually root, but good to be explicit for installation)
USER root
# 1. Install Dependencies
# We combine your media tools (ffmpeg, imagemagick) with the network tools (ifupdown, iproute2)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ffmpeg \
imagemagick \
ghostscript \
ifupdown \
iproute2 \
iputils-ping \
nano \
&& rm -rf /var/lib/apt/lists/*
# 2. Apply your permissions fix
RUN chown www-data:www-data /usr/local/etc/php/conf.d/
# 3. Add Networking Script
COPY start_network.sh /start_network.sh
RUN chmod +x /start_network.sh
# 4. Entrypoint
# We DO NOT switch to USER www-data here.
# We stay as root so start_network.sh can configure the IP address.
ENTRYPOINT ["/start_network.sh"]