Add in-container nextcloud install

This increases the size of the container image, but reduces the reliance
on the external volume for loading application data. This couples the application
code to the container image rather than to the container state.
This commit is contained in:
2024-04-10 23:15:34 -04:00
parent f66e425d35
commit 292b116cdd
2 changed files with 25 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y \
libldap2-dev \
libsmbclient-dev \
libcurl4-openssl-dev \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Download and install the docker-php-extension-installer script
@@ -64,6 +65,11 @@ COPY ./php.ini-production /usr/local/etc/php/php.ini
# Set the working directory
WORKDIR /var/www/html
RUN curl -sSLo latest.zip https://download.nextcloud.com/server/releases/latest.zip
RUN unzip latest.zip
RUN rm latest.zip
RUN chown -R www-data:www-data nextcloud/
# Expose port 9000 for PHP-FPM
# EXPOSE 9000