From 4b534fcaa26b20b033e1d35ea1cc8f8fb0d9c81b Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Tue, 20 Oct 2026 13:44:37 -0600 Subject: [PATCH] =?UTF-8?q?Dockerfile:=20stamp=20a=20unique=20x-coop-build?= =?UTF-8?q?=20meta=20into=20index.html=20every=20build=20=E2=80=94=20force?= =?UTF-8?q?s=20the=20service=20worker=20precache=20to=20update=20so=20stal?= =?UTF-8?q?e=20clients=20self-heal=20on=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7a2b86..b453783 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,8 +44,9 @@ RUN python3 /app/code/patch_ui_strings.py # Inject branding into built HTML (dist) before image is packaged # rebuild marker 20261019-$(date +%s) RUN sed -i 's|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 && \ - sed -i '/<link rel="stylesheet" href="assets\/custom.css">/a <script src="assets/custom2.js"></script>' /app/code/librechat/client/dist/index.html && \ + sed -i '/<title>Inference Co‑op<\\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html && \ + sed -i '/<link rel="stylesheet" href="assets\\/custom.css">/a <script src="assets/custom2.js"></script>' /app/code/librechat/client/dist/index.html && \ + sed -i "s||\\n |" /app/code/librechat/client/dist/index.html && \ sed -i 's|assets/logo.svg|assets/logo.svg?v=3|g' /app/code/librechat/client/dist/assets/index.*.js && \ rm -f /app/code/librechat/client/dist/assets/index.*.js.gz /app/code/librechat/client/dist/assets/index.*.js.br