Skip to content

Commit 2a2cb92

Browse files
committed
Use venv to get current pip packages
1 parent 7793f09 commit 2a2cb92

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/unrar:latest as unrar
3+
FROM ghcr.io/linuxserver/unrar:latest AS unrar
44

55
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
66

@@ -21,11 +21,6 @@ RUN \
2121
apk add -U --update --no-cache \
2222
ffmpeg \
2323
mediainfo \
24-
py3-chardet \
25-
py3-idna \
26-
py3-openssl \
27-
py3-setuptools \
28-
py3-urllib3 \
2924
python3 && \
3025
echo "**** install app ****" && \
3126
if [ -z ${MEDUSA_RELEASE+x} ]; then \
@@ -39,6 +34,13 @@ RUN \
3934
"https://github.com/pymedusa/Medusa/archive/${MEDUSA_RELEASE}.tar.gz" && \
4035
tar xf /tmp/medusa.tar.gz -C \
4136
/app/medusa --strip-components=1 && \
37+
cd /app/medusa && \
38+
python3 -m venv /lsiopy && \
39+
pip install -U --no-cache-dir \
40+
pip \
41+
setuptools \
42+
wheel && \
43+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
4244
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
4345
echo "**** clean up ****" && \
4446
apk del --purge \

Dockerfile.aarch64

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar
3+
FROM ghcr.io/linuxserver/unrar:arm64v8-latest AS unrar
44

55
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
66

@@ -21,11 +21,6 @@ RUN \
2121
apk add -U --update --no-cache \
2222
ffmpeg \
2323
mediainfo \
24-
py3-chardet \
25-
py3-idna \
26-
py3-openssl \
27-
py3-setuptools \
28-
py3-urllib3 \
2924
python3 && \
3025
echo "**** install app ****" && \
3126
if [ -z ${MEDUSA_RELEASE+x} ]; then \
@@ -39,6 +34,13 @@ RUN \
3934
"https://github.com/pymedusa/Medusa/archive/${MEDUSA_RELEASE}.tar.gz" && \
4035
tar xf /tmp/medusa.tar.gz -C \
4136
/app/medusa --strip-components=1 && \
37+
cd /app/medusa && \
38+
python3 -m venv /lsiopy && \
39+
pip install -U --no-cache-dir \
40+
pip \
41+
setuptools \
42+
wheel && \
43+
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ -r requirements.txt && \
4244
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
4345
echo "**** clean up ****" && \
4446
apk del --purge \

0 commit comments

Comments
 (0)