From 58b36038801bdb911616326fe867915c7196b170 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sun, 18 Oct 2026 21:26:25 -0600 Subject: [PATCH] Rewrite Dockerfile: copy custom.css/js and edit source index.html --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f821714..959ae68 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,12 +29,10 @@ COPY assets/apple-touch-icon-180x180.png /app/code/librechat/client/dist/assets/ COPY assets/icon-192x192.png /app/code/librechat/client/dist/assets/icon-192x192.png COPY assets/maskable-icon.png /app/code/librechat/client/dist/assets/maskable-icon.png -# Copy custom branding CSS +# Custom stylesheet and optional helper JS COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css -# Copy optional helper JS (auto‑load API key) COPY assets/custom.js /app/code/librechat/client/dist/assets/custom.js -# Apply branding patch to the *source* index.html before the container copies it -COPY client/index.html.patch /tmp/index.html.patch -RUN cd /app/code/librechat/client && \ - patch -p0 < /tmp/index.html.patch && \ - rm /tmp/index.html.patch + +# Inject branding into source index.html (before runtime copy) +RUN sed -i 's|LibreChat|Inference Co-op|' /app/code/librechat/client/index.html && \ + sed -i '/Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/index.html