FROM python:3.11 RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH WORKDIR $HOME/app COPY --chown=user . . RUN pip install -r requirements.txt RUN --mount=type=secret,id=HUGGINGFACE_API_TOKEN,mode=0444,required=true RUN --mount=type=secret,id=CHAINLIT_AUTH_SECRET,mode=0444,required=true CMD ["chainlit", "run", "app.py", "--port", "7860"]