diff options
author | nacho <nacho@ownyourbits.com> | 2018-09-21 09:15:50 +0300 |
---|---|---|
committer | nacho <nacho@ownyourbits.com> | 2018-09-22 08:48:00 +0300 |
commit | dabc17fb0736d2d0e01828f68dc6dec822d523d7 (patch) | |
tree | badbe15113f6d2961027196bb07df2fc9d596287 /docker | |
parent | 7a8c0e40f51295fc3ce3b65d3a256e7e77e38c4a (diff) |
build: fully local builds
Diffstat (limited to 'docker')
-rw-r--r-- | docker/nextcloudpi/Dockerfile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/docker/nextcloudpi/Dockerfile b/docker/nextcloudpi/Dockerfile index 760e6efb..8655cc22 100644 --- a/docker/nextcloudpi/Dockerfile +++ b/docker/nextcloudpi/Dockerfile @@ -6,7 +6,12 @@ SHELL ["/bin/bash", "-c"] ENV DOCKERBUILD 1 -COPY ncp.sh /usr/local/etc/ +RUN mkdir -p /tmp/ncp-build +COPY bin/* /tmp/ncp-build/bin/ +COPY etc /tmp/ncp-build/etc/ +COPY ncp.sh update.sh /tmp/ncp-build/ +COPY ncp-web /tmp/ncp-build/ncp-web/ +COPY docker-common /tmp/ncp-build/docker-common/ RUN \ @@ -22,25 +27,25 @@ apt-get install --no-install-recommends -y wget ca-certificates; \ # install nextcloudpi source /usr/local/etc/library.sh; \ set +x; \ -cd /usr/local/etc/; \ +cd /tmp/ncp-build/; \ install_script ncp.sh; \ # fix default paths -sed -i 's|/media/USBdrive|/data/backups|' ncp-config.d/nc-backup.sh; \ +sed -i 's|/media/USBdrive|/data/backups|' /usr/local/etc/ncp-config.d/nc-backup.sh; \ # specific cleanup -rm /usr/local/etc/ncp.sh; \ +rm -r /tmp/ncp-build; \ rm /.ncp-image; \ -# should be cleaned up in no-ip.sh, but breaks udiskie. -# safe to do it here since no automount in docker -apt-get purge -y make gcc libc-dev; \ - # cleanup all NCP extras source /usr/local/etc/library.sh; \ cd /usr/local/etc/ncp-config.d/; \ for script in *.sh; do cleanup_script $script; done; \ +# should be cleaned up in no-ip.sh, but breaks udiskie. +# safe to do it here since no automount in docker +apt-get purge -y make gcc libc-dev; \ + # package clean up apt-get autoremove -y; \ apt-get clean; \ |