mirror of
https://github.com/linuxserver/docker-changedetection.io.git
synced 2026-01-09 07:21:39 +08:00
52 lines
1.4 KiB
Docker
52 lines
1.4 KiB
Docker
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
|
|
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG CHANGEDETECTION_RELEASE
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thespad"
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN \
|
|
apk add --update --no-cache --virtual=build-dependencies \
|
|
openssl-dev \
|
|
libffi-dev \
|
|
gcc \
|
|
libc-dev \
|
|
libxslt-dev \
|
|
zlib-dev \
|
|
g++ \
|
|
py3-wheel \
|
|
python3-dev && \
|
|
apk add --update --no-cache \
|
|
curl \
|
|
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 && \
|
|
pip3 install -U pip wheel setuptools && \
|
|
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r /app/changedetection/requirements.txt && \
|
|
apk del --purge \
|
|
build-dependencies && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/root/.cache
|
|
|
|
COPY root/ /
|
|
|
|
EXPOSE 5000
|
|
VOLUME /config
|