Arghadee commited on
Commit
30aa6ee
·
verified ·
1 Parent(s): f1a58e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.10-slim
2
  WORKDIR /app
3
  RUN pip install uv hatchling
4
  COPY pyproject.toml .
5
- RUN uv lock
6
  COPY . .
7
- RUN uv sync --no-dev || pip install openenv-core fastapi uvicorn gradio matplotlib numpy pandas openai python-dotenv pydantic
8
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
  WORKDIR /app
3
  RUN pip install uv hatchling
4
  COPY pyproject.toml .
5
+ RUN uv lock && cp uv.lock /tmp/uv.lock
6
  COPY . .
7
+ RUN cp /tmp/uv.lock . && uv sync --no-dev || pip install openenv-core fastapi uvicorn gradio matplotlib numpy pandas openai python-dotenv pydantic
8
  CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]