# Use an official Python runtime as base image FROM python:3.11 # Set the working directory in the container WORKDIR /app # Copy files to the container COPY . . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the application port EXPOSE 5000 # Run the application CMD ["python", "app.py"]