Add custom.css and inject it into index.html
This commit is contained in:
1 parent
ff8532afd8
commit
c967d788de
2 files changed
+53
No files matched your search
@@ -29,6 +29,12 @@ 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
|
||||
COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css
|
||||
# Insert the CSS link after the title tag
|
||||
RUN sed -i '/<title>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</title>|<title>Inference Co-op</title>|' /app/code/librechat/client/dist/index.html
|
||||
Reference in new issue
Block a user