FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential curl \ && rm -rf /var/lib/apt/lists/* COPY requirements_api.txt . RUN pip install --no-cache-dir -r requirements_api.txt COPY . . ENV PYTHONUNBUFFERED=1 \ API_HOST=0.0.0.0 \ API_PORT=7860 EXPOSE 7860 CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]