# Use the official Python image from the Docker Hub FROM python:3.9-slim # Set the working directory inside the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install the required Python packages RUN pip install -r requirements.txt # Expose port 5000 to the outside world EXPOSE 5000 # Command to run the app using Gunicorn CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]