| FROM python:3.9 | |
| COPY . /app | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the Flask application and templates directory into the container | |
| COPY app.py . | |
| COPY templates templates | |
| # Expose the port the application will run on | |
| EXPOSE 5001 | |
| CMD ["python", "app.py"] |