open-webui-space / Dockerfile
mr06cpp's picture
Add GitHub Models integration
101192b
raw
history blame
482 Bytes
# Building from source is too slow, so let's just customize the existing image
FROM ghcr.io/open-webui/open-webui:git-8dbac0f
WORKDIR /app
USER 0:0
# HACK for huggingface.co iframe
RUN sed -i "s|set_cookie(|set_cookie(samesite='none',secure=True,|g" backend/open_webui/apps/webui/routers/auths.py
RUN pip install "litellm[proxy]==1.47.0" && chown -R 1000:0 /app
USER 1000:0
COPY ./azure-models.txt /assets/azure-models.txt
COPY ./start.sh /start.sh
CMD [ "bash", "/start.sh" ]