Skip to content

Commit 3fd610c

Browse files
authored
docker: set PYTHONPATH for copydocs scripts (#12811)
1 parent 1132941 commit 3fd610c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docker/Dockerfile.olbase

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ COPY --chown=openlibrary:openlibrary requirements*.txt ./
7171
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
7272
# This is needed so we install packages into the system python instead of needing venv
7373
ENV UV_SYSTEM_PYTHON=1
74+
# Util to make scripts like copydocs work without needing to manually specify PYTHONPATH
75+
ENV PYTHONPATH=/openlibrary
7476
USER root
7577
RUN uv pip install --upgrade wheel
7678
RUN uv pip install -r requirements.txt

0 commit comments

Comments
 (0)