diff --git a/Dockerfile b/Dockerfile index 5548188..17afaf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.14 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.15 # set version label ARG BUILD_DATE @@ -19,7 +19,7 @@ RUN \ apk add --no-cache --virtual=build-dependencies \ curl && \ echo "**** install snapdrop ****" && \ - mkdir -p /app/snapdrop && \ + mkdir -p /app/www && \ if [ -z ${SNAPDROP_RELEASE} ]; then \ SNAPDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/RobinLinus/snapdrop/commits/master" \ | awk '/sha/{print $4;exit}' FS='[""]'); \ @@ -29,8 +29,8 @@ RUN \ "https://github.com/RobinLinus/snapdrop/archive/${SNAPDROP_RELEASE}.tar.gz" && \ tar xf \ /tmp/snapdrop.tar.gz -C \ - /app/snapdrop/ --strip-components=1 && \ - cd /app/snapdrop/server && \ + /app/www/ --strip-components=1 && \ + cd /app/www/server && \ npm i && \ echo "**** cleanup ****" && \ apk del --purge \ @@ -41,3 +41,7 @@ RUN \ # copy local files COPY root/ / + +# ports and volumes +EXPOSE 80 443 +VOLUME /config diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 1c5ae3e..5a53bda 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.14 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.15 # set version label ARG BUILD_DATE @@ -19,7 +19,7 @@ RUN \ apk add --no-cache --virtual=build-dependencies \ curl && \ echo "**** install snapdrop ****" && \ - mkdir -p /app/snapdrop && \ + mkdir -p /app/www && \ if [ -z ${SNAPDROP_RELEASE} ]; then \ SNAPDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/RobinLinus/snapdrop/commits/master" \ | awk '/sha/{print $4;exit}' FS='[""]'); \ @@ -29,8 +29,8 @@ RUN \ "https://github.com/RobinLinus/snapdrop/archive/${SNAPDROP_RELEASE}.tar.gz" && \ tar xf \ /tmp/snapdrop.tar.gz -C \ - /app/snapdrop/ --strip-components=1 && \ - cd /app/snapdrop/server && \ + /app/www/ --strip-components=1 && \ + cd /app/www/server && \ npm i && \ echo "**** cleanup ****" && \ apk del --purge \ @@ -41,3 +41,7 @@ RUN \ # copy local files COPY root/ / + +# ports and volumes +EXPOSE 80 443 +VOLUME /config diff --git a/Dockerfile.armhf b/Dockerfile.armhf index b31ef05..9350bbb 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -1,4 +1,4 @@ -FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.14 +FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm32v7-3.15 # set version label ARG BUILD_DATE @@ -19,7 +19,7 @@ RUN \ apk add --no-cache --virtual=build-dependencies \ curl && \ echo "**** install snapdrop ****" && \ - mkdir -p /app/snapdrop && \ + mkdir -p /app/www && \ if [ -z ${SNAPDROP_RELEASE} ]; then \ SNAPDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/RobinLinus/snapdrop/commits/master" \ | awk '/sha/{print $4;exit}' FS='[""]'); \ @@ -29,8 +29,8 @@ RUN \ "https://github.com/RobinLinus/snapdrop/archive/${SNAPDROP_RELEASE}.tar.gz" && \ tar xf \ /tmp/snapdrop.tar.gz -C \ - /app/snapdrop/ --strip-components=1 && \ - cd /app/snapdrop/server && \ + /app/www/ --strip-components=1 && \ + cd /app/www/server && \ npm i && \ echo "**** cleanup ****" && \ apk del --purge \ @@ -41,3 +41,7 @@ RUN \ # copy local files COPY root/ / + +# ports and volumes +EXPOSE 80 443 +VOLUME /config diff --git a/README.md b/README.md index 273e30b..18cfc3d 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ The architectures supported by this image are: Webui is accessible at http://SERVERIP:PORT -If you intend to expose Snapdrop to the internet, edit /config/nginx/site-confs/default and uncomment the real_ip settings +If you intend to expose Snapdrop to the internet, edit /config/nginx/site-confs/default.conf and uncomment the real_ip settings ## Usage @@ -226,5 +226,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **20.08.22:** - Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base)). * **09.08.21:** - Rebase to Alpine 3.14. Add real_ip block to nginx default site config. * **15.09.20:** - Initial Release. diff --git a/package_versions.txt b/package_versions.txt index 664efd6..2a84ddc 100755 --- a/package_versions.txt +++ b/package_versions.txt @@ -1,13 +1,13 @@ alpine-baselayout-3.2.0-r16 alpine-keys-2.4-r0 -apache2-utils-2.4.54-r0 +apache2-utils-2.4.51-r0 apk-tools-2.12.7-r0 apr-1.7.0-r1 apr-util-1.6.1-r7 argon2-libs-20190702-r1 bash-5.1.16-r0 brotli-libs-1.0.9-r5 -busybox-1.33.1-r8 +busybox-1.33.1-r6 c-ares-1.17.2-r0 ca-certificates-20220614-r0 ca-certificates-bundle-20220614-r0 @@ -30,8 +30,8 @@ libressl3.3-libssl-3.3.6-r0 libretls-3.3.3p1-r3 libssl1.1-1.1.1q-r0 libstdc++-10.3.1_git20210424-r2 -libuuid-2.37.4-r0 -libxml2-2.9.14-r0 +libuuid-2.37.2-r0 +libxml2-2.9.12-r1 linux-pam-1.5.1-r1 logrotate-3.18.1-r3 musl-1.2.2-r3 @@ -40,13 +40,13 @@ nano-5.7-r2 ncurses-libs-6.2_p20210612-r1 ncurses-terminfo-base-6.2_p20210612-r1 nghttp2-libs-1.43.0-r0 -nginx-1.20.2-r1 -nodejs-14.20.0-r0 +nginx-1.20.2-r0 +nodejs-14.18.1-r0 npm-7.17.0-r0 oniguruma-6.9.7.1-r0 openssl-1.1.1q-r0 pcre-8.44-r0 -pcre2-10.36-r1 +pcre2-10.36-r0 php7-7.4.26-r0 php7-common-7.4.26-r0 php7-fileinfo-7.4.26-r0 @@ -65,8 +65,8 @@ s6-ipcserver-2.10.0.3-r0 scanelf-1.3.2-r0 shadow-4.8.1-r0 skalibs-2.10.0.3-r0 -ssl_client-1.33.1-r8 -tzdata-2022a-r0 +ssl_client-1.33.1-r6 +tzdata-2021e-r0 utmps-0.1.0.2-r0 xz-5.2.5-r1 xz-libs-5.2.5-r1 diff --git a/readme-vars.yml b/readme-vars.yml index 0d531fc..034ac43 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -63,9 +63,10 @@ app_setup_block_enabled: true app_setup_block: | Webui is accessible at http://SERVERIP:PORT - If you intend to expose Snapdrop to the internet, edit /config/nginx/site-confs/default and uncomment the real_ip settings + If you intend to expose Snapdrop to the internet, edit /config/nginx/site-confs/default.conf and uncomment the real_ip settings # changelog changelogs: + - { date: "20.08.22:", desc: "Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base))." } - { date: "09.08.21:", desc: "Rebase to Alpine 3.14. Add real_ip block to nginx default site config." } - { date: "15.09.20:", desc: "Initial Release." } diff --git a/root/app/snapdrop/client/index.html b/root/app/snapdrop/client/index.html new file mode 100644 index 0000000..2ac31be --- /dev/null +++ b/root/app/snapdrop/client/index.html @@ -0,0 +1,40 @@ + +
+