FROM python:3.10-slim WORKDIR /app # Copy app files COPY . /app # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port used by Flask EXPOSE 7860 # Run the app CMD ["python", "app.py"]