Aditya Guntur Claude Sonnet 4.6 commited on
Commit
f9375ea
·
1 Parent(s): aa8d9a1

Fix Dockerfile: use pip instead of uv sync --frozen

Browse files

uv 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>

Files changed (1) hide show
  1. 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 uv sync --frozen
7
 
8
  EXPOSE 8000
9
 
10
- CMD ["uv", "run", "uvicorn", "server.app:app", \
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"]