Jiyaaaaaa commited on
Commit
be5861f
·
verified ·
1 Parent(s): 5102e93

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile CHANGED
@@ -31,6 +31,22 @@ COPY . /app/env
31
  # For standalone builds, openenv will be installed via pyproject.toml
32
  WORKDIR /app/env
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  # Final runtime stage
35
  FROM ${BASE_IMAGE}
36
 
 
31
  # For standalone builds, openenv will be installed via pyproject.toml
32
  WORKDIR /app/env
33
 
34
+ # Install dependencies using uv sync
35
+ # If uv.lock exists, use it; otherwise resolve on the fly
36
+ RUN --mount=type=cache,target=/root/.cache/uv \
37
+ if [ -f uv.lock ]; then \
38
+ uv sync --frozen --no-install-project --no-editable; \
39
+ else \
40
+ uv sync --no-install-project --no-editable; \
41
+ fi
42
+
43
+ RUN --mount=type=cache,target=/root/.cache/uv \
44
+ if [ -f uv.lock ]; then \
45
+ uv sync --frozen --no-editable; \
46
+ else \
47
+ uv sync --no-editable; \
48
+ fi
49
+
50
  # Final runtime stage
51
  FROM ${BASE_IMAGE}
52