# Use Python base image FROM python:3.9 # Set working directory WORKDIR /app # Copy current files into container COPY . /app # Install Flask #RUN pip install flask gunicorn RUN pip install --no-cache-dir --upgrade -r requirements.txt # Expose default port EXPOSE 7860 # Run with Gunicorn CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]