From b44ab7108e754cb12d734bcd0594e4723c800148 Mon Sep 17 00:00:00 2001 From: queeup Date: Wed, 26 Jun 2024 03:18:39 +0200 Subject: [PATCH] subliminal:updated to v2.2.0 watchdog: updated to v4.0.1 unrar: removed. https://github.com/Diaoul/subliminal/issues/1096 alpine: updated to v3.20 python: updated to v3.12.4 --- Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 257edf1..1738620 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,17 @@ -FROM python:alpine3.14 AS base +FROM python:3.12-alpine AS base FROM base AS builder -ARG WATCHDOG_VERSION=4.0.0 +ARG SUBLIMINAL_VERSION=2.2.0 +ARG WATCHDOG_VERSION=4.0.1 -RUN apk add --no-cache unrar &&\ - pip install --no-cache-dir \ +RUN pip install --no-cache-dir \ --no-compile \ --no-warn-script-location \ --disable-pip-version-check \ --prefix=/build \ - subliminal watchdog[watchmedo]==${WATCHDOG_VERSION} &&\ + subliminal==${SUBLIMINAL_VERSION} \ + watchdog[watchmedo]==${WATCHDOG_VERSION} &&\ find /build -depth \ \( \ \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) \ @@ -21,11 +22,11 @@ RUN apk add --no-cache unrar &&\ FROM base COPY --from=builder /build /usr/local -COPY --from=builder /usr/bin/unrar /usr/local/bin/ -COPY --from=builder /usr/lib/libstdc++.so* /usr/local/lib/ # This hack is widely applied to avoid python printing issues in docker containers. # See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13 ENV PYTHONUNBUFFERED=1 VOLUME /cache + +CMD watchmedo --help && echo && subliminal --help