FROM python:3.11-slim RUN apt-get update && apt-get install -y \ git \ git-lfs \ curl \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir gunicorn eventlet huggingface_hub[cli] RUN pip install --no-cache-dir -r requirements.txt COPY . . RUN chmod +x entrypoint.sh RUN useradd -m -u 1000 user RUN chown -R user:user /app USER user ENV HOME=/home/user ENV PATH=/home/user/.local/bin:$PATH ENV PORT=7680 ENV PYTHONUNBUFFERED=1 EXPOSE 7680 CMD ["./entrypoint.sh"]