Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- Dockerfile +7 -0
- README.md +3 -3
Dockerfile
CHANGED
|
@@ -26,6 +26,13 @@ COPY . /app/env
|
|
| 26 |
# For standalone builds, openenv-core will be installed from pip via pyproject.toml
|
| 27 |
WORKDIR /app/env
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Install dependencies using uv sync
|
| 30 |
# If uv.lock exists, use it; otherwise resolve on the fly
|
| 31 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
|
|
| 26 |
# For standalone builds, openenv-core will be installed from pip via pyproject.toml
|
| 27 |
WORKDIR /app/env
|
| 28 |
|
| 29 |
+
# Ensure uv is available (for local builds where base image lacks it)
|
| 30 |
+
RUN if ! command -v uv >/dev/null 2>&1; then \
|
| 31 |
+
curl -LsSf https://astral.sh/uv/install.sh | sh && \
|
| 32 |
+
mv /root/.local/bin/uv /usr/local/bin/uv && \
|
| 33 |
+
mv /root/.local/bin/uvx /usr/local/bin/uvx; \
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
# Install dependencies using uv sync
|
| 37 |
# If uv.lock exists, use it; otherwise resolve on the fly
|
| 38 |
RUN --mount=type=cache,target=/root/.cache/uv \
|
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
title: Play Environment Server
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
app_port: 8000
|
|
|
|
| 1 |
---
|
| 2 |
title: Play Environment Server
|
| 3 |
+
emoji: 🎸
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
app_port: 8000
|