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:
parent
f66e425d35
commit
d878dd8c70
@ -7,4 +7,13 @@ ENV NEXTCLOUD_MAX_UPLOAD_SIZE=512M
|
|||||||
ADD nginx.conf.template /nginx.conf.template
|
ADD nginx.conf.template /nginx.conf.template
|
||||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
|
|
||||||
|
RUN mkdir --parents /var/www/html
|
||||||
|
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 root:root nextcloud/
|
||||||
|
RUN chmod -R 0755 nextcloud/
|
||||||
|
|
||||||
ENTRYPOINT ["sh", "-c", "/docker-entrypoint.sh"]
|
ENTRYPOINT ["sh", "-c", "/docker-entrypoint.sh"]
|
||||||
|
@ -64,6 +64,11 @@ COPY ./php.ini-production /usr/local/etc/php/php.ini
|
|||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /var/www/html
|
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 port 9000 for PHP-FPM
|
||||||
# EXPOSE 9000
|
# EXPOSE 9000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user