From 1a4f8ee2e7b17cc979c8789f8d4d1e18ba9e8614 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 2 Nov 2022 22:52:04 +0100 Subject: [PATCH] simplify --- .github/test/Dockerfile-alpine | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/test/Dockerfile-alpine b/.github/test/Dockerfile-alpine index 0bd9a228..b255195d 100644 --- a/.github/test/Dockerfile-alpine +++ b/.github/test/Dockerfile-alpine @@ -5,6 +5,8 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.16 ENV PYTHONUNBUFFERED=1 +COPY requirements.txt /requirements.txt + RUN \ apk add --update --no-cache --virtual=build-dependencies \ cargo \ @@ -22,29 +24,8 @@ RUN \ libxslt \ python3 \ py3-pip && \ - echo "**** install changedetection.io ****" && \ - mkdir -p /app/changedetection && \ - if [ -z ${CHANGEDETECTON_RELEASE+x} ]; then \ - CHANGEDETECTON_RELEASE=$(curl -sX GET "https://api.github.com/repos/dgtlmoon/changedetection.io/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]'); \ - fi && \ - curl -s -o \ - /tmp/changedetection.tar.gz -L \ - "https://github.com/dgtlmoon/changedetection.io/archive/${CHANGEDETECTON_RELEASE}.tar.gz" && \ - tar xf \ - /tmp/changedetection.tar.gz -C \ - /app/changedetection/ --strip-components=1 && \ - rm /tmp/changedetection.tar.gz && \ + echo "**** pip3 install test of changedetection.io ****" && \ pip3 install -U pip wheel setuptools && \ - pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r /app/changedetection/requirements.txt && \ + pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r /requirements.txt && \ apk del --purge \ - build-dependencies && \ - rm -rf \ - /tmp/* \ - /root/.cache - -COPY root/ / - -EXPOSE 5000 - -VOLUME /config \ No newline at end of file + build-dependencies