Spaces:
Sleeping
Sleeping
Aditya Guntur Claude Sonnet 4.6 commited on
Commit ·
f9375ea
1
Parent(s): aa8d9a1
Fix Dockerfile: use pip instead of uv sync --frozen
Browse filesuv sync --frozen failed on HF base image due to Python version mismatch.
Switching to pip install for reliable cross-version dependency install.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -3,9 +3,8 @@ FROM ghcr.io/meta-pytorch/openenv-base:latest
|
|
| 3 |
WORKDIR /app
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
-
RUN
|
| 7 |
|
| 8 |
EXPOSE 8000
|
| 9 |
|
| 10 |
-
CMD ["
|
| 11 |
-
"--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
+
RUN pip install --no-cache-dir openenv-core fastapi "uvicorn[standard]" pydantic && pip install --no-cache-dir -e . --no-deps
|
| 7 |
|
| 8 |
EXPOSE 8000
|
| 9 |
|
| 10 |
+
CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|