FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive ENV PYTHONUNBUFFERED=1 RUN apt-get update && \ apt-get install -y python3 python3-pip bash && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip3 install --break-system-packages --no-cache-dir -r requirements.txt COPY app.py . EXPOSE 7860 CMD ["python3", "-u", "app.py"]