Update Dockerfile
Browse files- Dockerfile +2 -11
Dockerfile
CHANGED
|
@@ -1,22 +1,13 @@
|
|
| 1 |
-
# Use a lightweight python image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
| 5 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
-
|
| 9 |
-
# Copy dependency files
|
| 10 |
COPY pyproject.toml uv.lock ./
|
| 11 |
-
|
| 12 |
-
# Install dependencies into the system path so they are always findable
|
| 13 |
RUN uv pip install --system fastapi uvicorn pydantic openai openenv-core
|
| 14 |
|
| 15 |
-
# Copy the rest of the code
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
# Start the server directly
|
| 22 |
-
CMD ["python", "server/app.py"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
| 4 |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
| 5 |
|
| 6 |
WORKDIR /app
|
|
|
|
|
|
|
| 7 |
COPY pyproject.toml uv.lock ./
|
|
|
|
|
|
|
| 8 |
RUN uv pip install --system fastapi uvicorn pydantic openai openenv-core
|
| 9 |
|
|
|
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
+
# Explicitly move to the root for the command
|
| 13 |
+
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|