Skip to content

Commit

Permalink
fix(bazarr): can haz python 3.12? (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p committed Aug 28, 2024
1 parent a432b4a commit 4ec2ff6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions apps/bazarr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/python:3.11-alpine
FROM docker.io/library/python:3.12-alpine

ARG TARGETPLATFORM
ARG VERSION
Expand Down Expand Up @@ -28,29 +28,31 @@ RUN \
curl \
ffmpeg \
jq \
libxml2 \
libxslt \
mediainfo \
nano \
tzdata \
unzip \
libpq \
&& \
apk add --no-cache --virtual .build-deps \
gcc \
build-base \
cargo \
libffi-dev \
musl-dev \
postgresql-dev \
&& \
pip install --upgrade "cryptography>=42.0.7" \
pip install --upgrade "gevent>=24.2.1" \
pip install --upgrade "lxml>=4.3.0, <5.0.0" \
pip install --upgrade "numpy>=1.12.0" \
pip install --upgrade --only-binary=Pillow "Pillow>=9.0.0" \
pip install --upgrade "psycopg2>=2.9.9" \
pip install --upgrade "setuptools>=70.0.0" \
pip install --upgrade "webrtcvad-wheels>=2.0.10" \
libpq-dev \
libxml2-dev \
libxslt-dev \
&& \
curl -fsSL -o /tmp/app.zip "https://github.com/morpheus65535/bazarr/releases/download/v${VERSION}/bazarr.zip" \
&& unzip -q /tmp/app.zip -d /app \
&& unzip -q /tmp/app.zip -d /app/bin \
&& \
rm -rf /app/bin/bin \
&& \
printf "UpdateMethod=docker\nBranch=master\nPackageVersion=%s\nPackageAuthor=[onedr0p](https://github.com/onedr0p)\n" "${VERSION}" > /app/package_info \
&& pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ \
--requirement /app/bin/requirements.txt \
--requirement /app/bin/postgres-requirements.txt \
&& chown -R root:root /app \
&& chmod -R 755 /app \
&& apk del --purge .build-deps \
Expand All @@ -60,7 +62,7 @@ RUN \
/tmp/*

COPY ./apps/bazarr/entrypoint.sh /entrypoint.sh
COPY --from=ghcr.io/linuxserver/unrar:7.0.7 /usr/bin/unrar-alpine /usr/bin/unrar
COPY --from=ghcr.io/linuxserver/unrar:7.0.9 /usr/bin/unrar-alpine /usr/bin/unrar

USER nobody:nogroup
WORKDIR /config
Expand Down
2 changes: 1 addition & 1 deletion apps/bazarr/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#shellcheck disable=SC2086
exec \
/usr/local/bin/python \
/app/bazarr.py \
/app/bin/bazarr.py \
--no-update \
--config /config \
--port ${BAZARR__PORT:-6767} \
Expand Down

0 comments on commit 4ec2ff6

Please sign in to comment.