# Basic image from Docker Hub FROM python:3.9-slim # Container working directory settings WORKDIR /app # Copy the requirements file and install Python COPY requirements.txt . RUN pip install -r requirements.txt # Copy application files to the image COPY app.py . # Expose port 5000 for the Flask application EXPOSE 5000 # Program to run CMD ["python", "app.py"]