Skip to content

Commit

Permalink
Dockerfile uv cache enabled for development model
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci authored Aug 2, 2024
1 parent 6668358 commit 10878ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ WORKDIR /app
ENV \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONFAULTHANDLER=1
# rye doesn't respect this env var
# UV_CACHE_DIR=/app/.cache/uv
PYTHONFAULTHANDLER=1 \
UV_CACHE_DIR=/opt/rye/.cache/uv

RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=requirements.lock,target=requirements.lock \
--mount=type=bind,source=requirements-dev.lock,target=requirements-dev.lock \
--mount=type=bind,source=.python-version,target=.python-version \
--mount=type=bind,source=README.md,target=README.md \
--mount=type=bind,source=src,target=src \
--mount=type=cache,target=/opt/rye/.cache/uv \
rye sync --no-lock

COPY . .
Expand Down

0 comments on commit 10878ab

Please sign in to comment.