Edit dist/index.html to inject branding

This commit is contained in:
Nathan Schneider committed 2026-10-18 21:28:32 -06:00
1 parent 6cc87e5833
commit 4e2aac9358
1 file changed
+3 -3
+3 -3
View File
@@ -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.css /app/code/librechat/client/dist/assets/custom.css
COPY assets/custom.js /app/code/librechat/client/dist/assets/custom.js COPY assets/custom.js /app/code/librechat/client/dist/assets/custom.js
# Inject branding into source index.html (before runtime copy) # Inject branding into built HTML (dist) before image is packaged
RUN sed -i 's|<title>LibreChat</title>|<title>Inference Co-op</title>|' /app/code/librechat/client/index.html && \ RUN sed -i 's|<title>LibreChat</title>|<title>Inference Co-op</title>|' /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/index.html sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html