diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 index 9b16903..d5d7f49 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN \ pip install --no-cache-dir -U \ cherrypy && \ +# install app + git clone --depth 1 https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager && \ + # cleanup rm -rf \ /root/.cache \ diff --git a/README.md b/README.md index 44f6c50..e5659d4 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Smartmontools has not been included, you can safely ignore the warning error in ## Versions ++ **20.07.17:** Internal git pull instead of at runtime. + **25.05.17:** Rebase to alpine 3.6. + **07.02.17:** Rebase to alpine 3.5. + **14.10.16:** Add version layer information. diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config new file mode 100644 index 0000000..75e7f95 --- /dev/null +++ b/root/etc/cont-init.d/30-config @@ -0,0 +1,5 @@ +#!/usr/bin/with-contenv bash + +# permissions +chown -R abc:abc \ + /app diff --git a/root/etc/cont-init.d/30-install b/root/etc/cont-init.d/30-install deleted file mode 100755 index 217bf62..0000000 --- a/root/etc/cont-init.d/30-install +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/with-contenv bash - -# install app -[[ ! -d /app/htpcmanager/.git ]] && \ - git clone https://github.com/Hellowlol/HTPC-Manager.git /app/htpcmanager - -# permissions -chown -R abc:abc \ - /app diff --git a/root/etc/services.d/htpcmanager/run b/root/etc/services.d/htpcmanager/run old mode 100755 new mode 100644 diff --git a/root/etc/services.d/vnstat/run b/root/etc/services.d/vnstat/run old mode 100755 new mode 100644