salveamicus's picture
Update Dockerfile
16c9dae verified
FROM ubuntu:latest
VOLUME /app/webui
WORKDIR /app/webui
RUN apt-get update
RUN apt-get install -y python3 libgoogle-perftools4 \
libtcmalloc-minimal4 git python3-pip ffmpeg libsm6 libxext6 \
&& adduser webui-user
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir packaging==21.3 \
&& pip install --no-cache-dir httpx==0.24.1
EXPOSE 7860
USER webui-user
RUN git config --global --add safe.directory /app/webui
CMD ["./run.sh"]