# Use an official Python runtime as a parent image FROM python:3.12-slim # Set the working directory in the container WORKDIR /app # Copy the requirements file and install dependencies COPY requirements.txt ./ RUN pip install --upgrade pip && pip install -r requirements.txt # Copy the entire project COPY . . # Expose port (adjust as necessary) EXPOSE 7860 # Command to run the Flask app CMD ["python", "app/app.py"]