FROM python:3.9-slim WORKDIR /code # Install dependencies RUN pip install fastapi==0.104.1 \ uvicorn==0.24.0 \ python-dotenv==1.0.0 \ openai==1.3.0 \ pydantic==2.4.2 \ python-multipart==0.0.6 # Copy your application COPY app.py . # Command to run the application CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]