# Use a lightweight Python base image FROM python:3.9-slim-buster # Set the working directory in the container WORKDIR /app # Copy the requirements file and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the Flask application and your HTML file COPY app.py . COPY index.html . # Expose the port Flask will run on EXPOSE 7860 # Command to run the Flask application CMD ["python", "app.py"]