| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements_api.txt . | |
| RUN pip install --no-cache-dir -r requirements_api.txt | |
| # Copy source | |
| COPY . . | |
| EXPOSE 8001 | |
| CMD ["python", "api_server_fastapi.py"] | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements_api.txt . | |
| RUN pip install --no-cache-dir -r requirements_api.txt | |
| # Copy source | |
| COPY . . | |
| EXPOSE 8001 | |
| CMD ["python", "api_server_fastapi.py"] | |