aastikny commited on
Commit
362f00d
·
verified ·
1 Parent(s): 53342de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Set PYTHONPATH to the current directory so imports always work
19
- ENV PYTHONPATH=/app
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"]