# Use official Python base image FROM python:3.9-slim # Set working directory WORKDIR /app # Copy the current directory contents into the container COPY . /app # Install dependencies RUN pip install --upgrade pip \ && pip install flask # Expose the port Flask runs on EXPOSE 7860 # Start the Flask app CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]