# Use an official Python runtime as a base image FROM python:3.10.9 # Set the working directory in the container WORKDIR / # Copy the current directory contents into the container at /app COPY . . # Install any needed dependencies specified in requirements.txt RUN pip install --no-cache-dir --upgrade -r /requirements.txt # Make port 80 available to the world outside this container EXPOSE 80 # Define the command to run your FastAPI application CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]