From ac41abb891a4ba7f9674c757cff9326838fd89bc Mon Sep 17 00:00:00 2001 From: Georgi Panov <77702912+Darkfella91@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:38:30 +0200 Subject: [PATCH] Update Dockerfile --- apps/bazarr/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/bazarr/Dockerfile b/apps/bazarr/Dockerfile index 734868bb0..0a359b1e8 100644 --- a/apps/bazarr/Dockerfile +++ b/apps/bazarr/Dockerfile @@ -12,7 +12,8 @@ ENV PIP_NO_CACHE_DIR=1 \ BAZARR__PORT=6767 \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ - PIP_DISABLE_PIP_VERSION_CHECK=1 + PIP_DISABLE_PIP_VERSION_CHECK=1 \ + REQUESTS_CA_BUNDLE=/app/venv/lib/python3.12/site-packages/certifi/cacert.pem WORKDIR /app @@ -61,10 +62,7 @@ RUN echo "**** Installing build and runtime dependencies ****" && \ rm -rf /root/.cache /root/.cargo /tmp/* && \ echo "**** Setting proper ownership and permissions for /app ****" && \ chown -R root:root /app && \ - chmod -R 755 /app && \ - PYTHON_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))') && \ - echo "Dynamically setting REQUESTS_CA_BUNDLE" && \ - echo "REQUESTS_CA_BUNDLE=/app/venv/lib/python$PYTHON_VERSION/site-packages/certifi/cacert.pem" >> /etc/environment + chmod -R 755 /app USER nobody:nogroup