Alina Lozovskaya commited on
Commit
9279351
1 Parent(s): e69fd6e

Uv cache settings

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -19,11 +19,15 @@ WORKDIR /app
19
  RUN mkdir -p /app/.cache
20
  #RUN chown -R user:user /app
21
 
 
 
 
 
22
  # Copy uv configuration files
23
  COPY backend/pyproject.toml backend/uv.lock ./
24
 
25
  # Install dependencies using uv
26
- RUN uv sync --all-extras --frozen
27
 
28
  # Copy backend code
29
  COPY backend/ .
 
19
  RUN mkdir -p /app/.cache
20
  #RUN chown -R user:user /app
21
 
22
+ # UV params
23
+ ENV UV_COMPILE_BYTECODE=1
24
+ ENV UV_CACHE_DIR=/app/.cache
25
+
26
  # Copy uv configuration files
27
  COPY backend/pyproject.toml backend/uv.lock ./
28
 
29
  # Install dependencies using uv
30
+ RUN uv sync --frozen --no-install-project --no-dev
31
 
32
  # Copy backend code
33
  COPY backend/ .