rework of patch for streamlit to display my favicon and title when paste url in messengers with preload-function

This commit is contained in:
2025-08-24 14:27:02 +02:00
parent 6939c01883
commit 3f4aed3978
3 changed files with 7 additions and 48 deletions

View File

@@ -15,7 +15,13 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /app
COPY ./patch-streamlit/* /usr/local/lib/python3.13/site-packages/streamlit/static/
# ein bisschen Patchen um auch beim Bookmarken oder Versenden der Webadresse per Messenger den richtigen Titel und das
# richtige Favicon zu verwenden/sehen
COPY ./app/images/favicon.ico /usr/local/lib/python3.13/site-packages/streamlit/static/favicon.ico
RUN sed -i -e 's|favicon\.png|favicon.ico|' \
-e 's|<title>.*</title>|<title>tebarius Mysteryhelfer (web)</title>|' \
/usr/local/lib/python3.13/site-packages/streamlit/static/index.html
EXPOSE 8501