# Use the official Python image from the Docker Hub FROM python:3.8-slim # Set the working directory WORKDIR /app # Copy the requirements file COPY requirements.txt ./ # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of your application files COPY . . # Expose the port the app runs on EXPOSE 80 # Command to run the app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]