From 4e2aac9358affd1b5d3d1ee4e29954a430a766e0 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sun, 18 Oct 2026 21:28:32 -0600 Subject: [PATCH] Edit dist/index.html to inject branding --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 959ae68..a777ac3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,6 @@ COPY assets/maskable-icon.png /app/code/librechat/client/dist/assets/maskable-ic COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css COPY assets/custom.js /app/code/librechat/client/dist/assets/custom.js -# 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 +# Inject branding into built HTML (dist) before image is packaged +RUN sed -i 's|<title>LibreChat|Inference Co-op|' /app/code/librechat/client/dist/index.html && \ + sed -i '/Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html