mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-16 00:04:48 +02:00
Dockerfile: use correct VOLUMEs
The persistent data is just the contents of config/ (configuration), apps/ (installed apps), and data/ (user data). The source code should not be made into a volume because it will cause persistence issues when you try to update an image. Currently the existing setup means that standard Docker-style updates (where you start a new Docker image) won't actually update the source code -- causing confusion and other issues. This matches how ownCloud's setup works as well. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
parent
4f8fa003c9
commit
4eacdfd848
8 changed files with 9 additions and 13 deletions
|
@ -40,7 +40,7 @@ RUN set -ex \
|
|||
RUN a2enmod rewrite
|
||||
|
||||
ENV NEXTCLOUD_VERSION 9.0.56
|
||||
VOLUME /var/www/html
|
||||
VOLUME ["/var/www/html/data", "/var/www/html/config", "/var/www/html/apps"]
|
||||
|
||||
RUN curl -fsSL -o nextcloud.tar.bz2 \
|
||||
"https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue