Spaces:
Running
Running
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"] |