mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-06-03 09:57:35 +00:00
Download nextcloud during build
This commit is contained in:
+3
-1
@@ -92,7 +92,9 @@ RUN \
|
||||
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
|
||||
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
|
||||
fi && \
|
||||
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
|
||||
echo "**** download nextcloud ****" && \
|
||||
curl -o /app/nextcloud.tar.bz2 -L \
|
||||
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
+3
-1
@@ -92,7 +92,9 @@ RUN \
|
||||
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
|
||||
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
|
||||
fi && \
|
||||
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
|
||||
echo "**** download nextcloud ****" && \
|
||||
curl -o /app/nextcloud.tar.bz2 -L \
|
||||
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
+3
-1
@@ -92,7 +92,9 @@ RUN \
|
||||
NEXTCLOUD_RELEASE=$(curl -s https://raw.githubusercontent.com/nextcloud/nextcloud.com/master/strings.php \
|
||||
| awk -F\' '/VERSIONS_SERVER_FULL_STABLE/ {print $2;exit}'); \
|
||||
fi && \
|
||||
echo ${NEXTCLOUD_RELEASE} > /version.txt && \
|
||||
echo "**** download nextcloud ****" && \
|
||||
curl -o /app/nextcloud.tar.bz2 -L \
|
||||
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
|
||||
@@ -191,6 +191,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **14.07.19:** - Download nextcloud during build time.
|
||||
* **28.06.19:** - Rebasing to alpine 3.10.
|
||||
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
|
||||
* **27.02.19:** - Updating base nginx config to sync up with v15 requirements.
|
||||
|
||||
@@ -58,6 +58,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "14.07.19:", desc: "Download nextcloud during build time." }
|
||||
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10." }
|
||||
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
|
||||
- { date: "27.02.19:", desc: "Updating base nginx config to sync up with v15 requirements." }
|
||||
|
||||
@@ -6,13 +6,8 @@ mkdir -p \
|
||||
|
||||
# install app
|
||||
if [ ! -e "${NEXTCLOUD_PATH}/index.php" ]; then
|
||||
NEXTCLOUD_VERSION=$(cat /version.txt)
|
||||
curl -o /tmp/nextcloud.tar.bz2 -L \
|
||||
https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2
|
||||
tar xf /tmp/nextcloud.tar.bz2 -C \
|
||||
tar xf /app/nextcloud.tar.bz2 -C \
|
||||
"${NEXTCLOUD_PATH}" --strip-components=1
|
||||
rm -f \
|
||||
/tmp/nextcloud.tar.bz2
|
||||
chown abc:abc -R \
|
||||
"${NEXTCLOUD_PATH}"
|
||||
chmod +x "${NEXTCLOUD_PATH}/occ"
|
||||
|
||||
Reference in New Issue
Block a user