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