feat: add remote workspaces and verified deliverables

This commit is contained in:
wuyang
2026-07-26 12:58:04 +08:00
parent 37f83eaac7
commit 0b4d799216
30 changed files with 1595 additions and 55 deletions
+18 -2
View File
@@ -3,7 +3,7 @@ FROM node:22-bookworm-slim@sha256:6c74791e557ce11fc957704f6d4fe134a7bc8d6f5ca440
ARG OPEN_WEBUI_REF=v0.9.6
ARG OPEN_WEBUI_COMMIT=1a97751e376e00a1897bc3679215ae1c7bd8fd42
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates librsvg2-bin \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
@@ -11,14 +11,30 @@ RUN git clone --depth 1 --branch "${OPEN_WEBUI_REF}" https://github.com/open-web
&& test "$(git rev-parse HEAD)" = "${OPEN_WEBUI_COMMIT}"
COPY docker/web/ModelSelector.svelte src/lib/components/chat/ModelSelector.svelte
COPY docker/web/WorkspaceFiles.svelte src/lib/components/chat/WorkspaceFiles.svelte
COPY docker/web/k1412_workspace.py backend/open_webui/routers/k1412_workspace.py
COPY docker/web/k1412-logo.svg /tmp/k1412-logo.svg
COPY docker/web/openwebui-no-rag.patch /tmp/openwebui-no-rag.patch
COPY docker/web/openwebui-local-storage.patch /tmp/openwebui-local-storage.patch
COPY docker/web/openwebui-lazy-azure.patch /tmp/openwebui-lazy-azure.patch
COPY docker/web/openwebui-product-ui.patch /tmp/openwebui-product-ui.patch
COPY docker/web/openwebui-workspace-router.patch /tmp/openwebui-workspace-router.patch
COPY docker/web/openwebui-brand.patch /tmp/openwebui-brand.patch
RUN git apply /tmp/openwebui-no-rag.patch \
&& git apply /tmp/openwebui-local-storage.patch \
&& git apply /tmp/openwebui-lazy-azure.patch \
&& git apply /tmp/openwebui-product-ui.patch
&& git apply /tmp/openwebui-product-ui.patch \
&& git apply /tmp/openwebui-workspace-router.patch \
&& git apply /tmp/openwebui-brand.patch
RUN cp /tmp/k1412-logo.svg static/static/favicon.svg \
&& rsvg-convert --width 512 --height 512 /tmp/k1412-logo.svg --output static/favicon.png \
&& rsvg-convert --width 512 --height 512 /tmp/k1412-logo.svg --output static/static/favicon.png \
&& rsvg-convert --width 500 --height 500 /tmp/k1412-logo.svg --output static/static/logo.png \
&& rsvg-convert --width 500 --height 500 /tmp/k1412-logo.svg --output static/static/splash.png \
&& rsvg-convert --width 500 --height 500 /tmp/k1412-logo.svg --output static/static/splash-dark.png \
&& rsvg-convert --width 180 --height 180 /tmp/k1412-logo.svg --output static/static/apple-touch-icon.png \
&& rsvg-convert --width 192 --height 192 /tmp/k1412-logo.svg --output static/static/web-app-manifest-192x192.png \
&& rsvg-convert --width 512 --height 512 /tmp/k1412-logo.svg --output static/static/web-app-manifest-512x512.png
RUN npm ci --no-audit --no-fund \
&& npx vite build