FROM python:3.10-slim WORKDIR /app # install OS packages needed for timezone handling and build tools RUN apt-get update && \ apt-get install -y --no-install-recommends tzdata && \ rm -rf /var/lib/apt/lists/* COPY . /app RUN pip install --no-cache-dir fastapi uvicorn[standard] requests pydantic EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]