Spaces:
Running
Running
File size: 762 Bytes
251e4da 8edd32f 251e4da 1bb8c5f 251e4da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
FROM debian:stable-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
ca-certificates \
curl \
ffmpeg \
bash && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -d /home/openwebui -s /usr/bin/bash openwebui && \
mkdir /app && \
chown openwebui:openwebui /app
USER openwebui
WORKDIR /app
RUN curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" RYE_TOOLCHAIN="/usr/bin/python3" bash
RUN . "$HOME/.rye/env" && \
rye init openwebui && \
cd openwebui && \
rye add huggingface_hub[hf_xet] open-webui==0.6.7
EXPOSE 8080
CMD ["/usr/bin/bash", "-c", "source $HOME/.rye/env && cd /app/openwebui && rye run open-webui serve --host 0.0.0.0 --port 8080"] |