Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
WORKDIR /app
|
| 3 |
-
RUN pip install uv
|
| 4 |
COPY pyproject.toml .
|
| 5 |
RUN uv lock
|
| 6 |
COPY . .
|
| 7 |
-
RUN 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"]
|
|
|
|
| 1 |
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"]
|