| # Use the official Python image from Docker Hub | |
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container | |
| COPY . . | |
| # Install the required Python packages | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Command to run the application | |
| CMD ["python", "app.py"] |