From 20be88f6e71918f0050b689506c6e0882d5d0284 Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sun, 18 Oct 2026 21:16:39 -0600 Subject: [PATCH] Inject CSS before and simplify title replacement --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a49179..b1a164e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,5 @@ COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css # Insert the CSS link after the title tag RUN sed -i '/Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html -# Browser-tab title (index.html is baked at build; sed no-ops harmlessly if -# the upstream markup ever changes) -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 +# Insert custom CSS link before closing </head> +RUN sed -i '/<\/head>/i <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html