FROM python:3.11 ENV DEBIAN_FRONTEND=noninteractive RUN apt update RUN apt install software-properties-common -y RUN add-apt-repository multiverse; dpkg --add-architecture i386; apt update RUN apt install lib32gcc-s1 zstd tar -y RUN pip3 install --no-cache-dir huggingface_hub huggingface_hub[cli] RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH WORKDIR $HOME/code COPY --chown=user ./startup.sh $HOME/code/startup.sh RUN chmod +x $HOME/code/startup.sh && cat $HOME/code/startup.sh COPY --chown=user . $HOME/code EXPOSE 7860 CMD ["bash", "startup.sh"]