Skip to content

Commit

Permalink
Merge pull request #168 from Shraymonks/fix-docker-root
Browse files Browse the repository at this point in the history
Fix deps permissions in docker build
  • Loading branch information
dmunozv04 authored Jun 16, 2024
2 parents 8de38cc + dc72db0 commit 015f5a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ COPY requirements.txt .

RUN apk add --no-cache gcc musl-dev && \
pip install --upgrade pip wheel && \
pip install --user -r requirements.txt && \
pip install -r requirements.txt && \
pip uninstall -y pip wheel && \
apk del gcc musl-dev && \
python3 -m compileall -b -f /root/.local/lib/python3.11/site-packages && \
find /root/.local/lib/python3.11/site-packages -name "*.py" -type f -delete && \
find /root/.local/lib/python3.11/ -name "__pycache__" -type d -exec rm -rf {} +
python3 -m compileall -b -f /usr/local/lib/python3.11/site-packages && \
find /usr/local/lib/python3.11/site-packages -name "*.py" -type f -delete && \
find /usr/local/lib/python3.11/ -name "__pycache__" -type d -exec rm -rf {} +

FROM base

ENV PIP_NO_CACHE_DIR=off iSPBTV_docker=True iSPBTV_data_dir=data TERM=xterm-256color COLORTERM=truecolor

COPY requirements.txt .

COPY --from=dep_installer /root/.local /root/.local
COPY --from=dep_installer /usr/local /usr/local

WORKDIR /app

Expand Down

0 comments on commit 015f5a7

Please sign in to comment.