mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-30 22:37:24 +03:00
Fix deps permissions in docker build
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -16,12 +16,12 @@ COPY requirements.txt .
|
|||||||
|
|
||||||
RUN apk add --no-cache gcc musl-dev && \
|
RUN apk add --no-cache gcc musl-dev && \
|
||||||
pip install --upgrade pip wheel && \
|
pip install --upgrade pip wheel && \
|
||||||
pip install --user -r requirements.txt && \
|
pip install -r requirements.txt && \
|
||||||
pip uninstall -y pip wheel && \
|
pip uninstall -y pip wheel && \
|
||||||
apk del gcc musl-dev && \
|
apk del gcc musl-dev && \
|
||||||
python3 -m compileall -b -f /root/.local/lib/python3.11/site-packages && \
|
python3 -m compileall -b -f /usr/local/lib/python3.11/site-packages && \
|
||||||
find /root/.local/lib/python3.11/site-packages -name "*.py" -type f -delete && \
|
find /usr/local/lib/python3.11/site-packages -name "*.py" -type f -delete && \
|
||||||
find /root/.local/lib/python3.11/ -name "__pycache__" -type d -exec rm -rf {} +
|
find /usr/local/lib/python3.11/ -name "__pycache__" -type d -exec rm -rf {} +
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ ENV PIP_NO_CACHE_DIR=off iSPBTV_docker=True iSPBTV_data_dir=data TERM=xterm-256c
|
|||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
COPY --from=dep_installer /root/.local /root/.local
|
COPY --from=dep_installer /usr/local /usr/local
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user