Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
|
@@ -31,12 +31,11 @@ COPY . /app/env
|
|
| 31 |
# For standalone builds, openenv will be installed via pyproject.toml
|
| 32 |
WORKDIR /app/env
|
| 33 |
|
| 34 |
-
#
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
fi
|
| 40 |
|
| 41 |
# Install dependencies using uv sync
|
| 42 |
# If uv.lock exists, use it; otherwise resolve on the fly
|
|
|
|
| 31 |
# For standalone builds, openenv will be installed via pyproject.toml
|
| 32 |
WORKDIR /app/env
|
| 33 |
|
| 34 |
+
# Install a recent uv (the base image may ship an older version that
|
| 35 |
+
# cannot parse the lock-file format produced by newer uv releases).
|
| 36 |
+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
| 37 |
+
mv /root/.local/bin/uv /usr/local/bin/uv && \
|
| 38 |
+
mv /root/.local/bin/uvx /usr/local/bin/uvx
|
|
|
|
| 39 |
|
| 40 |
# Install dependencies using uv sync
|
| 41 |
# If uv.lock exists, use it; otherwise resolve on the fly
|