FROM python:3.12.9-slim-bullseye WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8 RUN apt-get update \ && apt-get install -y --no-install-recommends \ curl \ build-essential \ nodejs \ npm \ && rm -rf /var/lib/apt/lists/* COPY . . RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python", "app.py"]