Skip to content

Commit

Permalink
add uv to Dockerfil
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 3, 2024
1 parent 5b947f5 commit 0a6c3ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RUN if [ "$BUILD_TRANSLATIONS" = "true" ]; then \

# Transition to Python base image
FROM python:${PY_VER} AS python-base
RUN pip install --no-cache-dir --upgrade setuptools pip
RUN pip install --no-cache-dir --upgrade setuptools pip uv

######################################################################
# Final lean image...
Expand Down Expand Up @@ -191,7 +191,7 @@ RUN --mount=type=bind,source=./docker,target=/docker \

# Install Playwright and its dependencies
RUN --mount=type=cache,target=/root/.cache/pip \
pip install playwright \
uv pip install --system playwright \
&& playwright install-deps

# Optionally install Chromium
Expand Down
4 changes: 2 additions & 2 deletions docker/pip-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ fi
# Choose whether to use pip cache
if $USE_CACHE; then
echo "Using pip cache..."
pip install "${ARGS[@]}"
uv pip install --system "${ARGS[@]}"
else
echo "Disabling pip cache..."
pip install --no-cache-dir "${ARGS[@]}"
uv pip install --system --no-cache-dir "${ARGS[@]}"
fi

# Remove build-essential if it was installed
Expand Down

0 comments on commit 0a6c3ad

Please sign in to comment.