Skip to content

Commit

Permalink
subliminal:updated to v2.2.0
Browse files Browse the repository at this point in the history
watchdog: updated to v4.0.1
unrar: removed. Diaoul/subliminal#1096
alpine: updated to v3.20
python: updated to v3.12.4
  • Loading branch information
queeup committed Jun 26, 2024
1 parent e50a6de commit b44ab71
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \) \) \
Expand All @@ -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

0 comments on commit b44ab71

Please sign in to comment.