Skip to content

Commit db94946

Browse files
committed
Update Dockefile to keep uv cache
1 parent 13a91ea commit db94946

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Container/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010

1111
WORKDIR /app
1212

13-
COPY pyproject.toml uv.lock .python-version ./
13+
COPY pyproject.toml uv.lock ./
14+
15+
ENV UV_CACHE_DIR=/opt/uv-cache
1416

1517
RUN uv venv /opt/venv \
16-
&& uv sync --frozen --no-dev --no-install-project \
17-
&& uv cache clean
18+
&& uv sync --frozen --no-dev --no-install-project
1819

1920
ENV VIRTUAL_ENV=/opt/venv
2021
ENV PATH="/opt/venv/bin:$PATH"

0 commit comments

Comments
 (0)