Skip to content

Commit

Permalink
Update index html
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Jan 31, 2025
1 parent 30034a5 commit 0429ace
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 62 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ RUN pip install -r requirements.txt
RUN pip install --upgrade maps4fs

COPY favicon.png /usr/local/lib/python3.11/site-packages/streamlit/static/favicon.png
COPY index.html /usr/local/lib/python3.11/site-packages/streamlit/static/index.html

# 1. Find the index.html file in the streamlit package.
# 2. Replace the contents <body><noscript>...</noscript></body> with the following:
# Generate map tempates for Farming Simulator from real places in a couple
# of clicks. Get the realistic terrain, roads, rivers, fields, and more.
# Completely free and open-source.
RUN sed -i 's|<body><noscript>.*</noscript></body>|<body><noscript>Generate map templates for Farming Simulator from real places in a couple of clicks. Get the realistic terrain, roads, rivers, fields, and more. Completely free and open-source.</noscript></body>|' /usr/local/lib/python3.11/site-packages/streamlit/static/index.html

EXPOSE 8501

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_lite
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN pip install -r requirements.txt
RUN pip install --upgrade maps4fs

COPY favicon.png /usr/local/lib/python3.11/site-packages/streamlit/static/favicon.png
COPY index.html /usr/local/lib/python3.11/site-packages/streamlit/static/index.html
RUN sed -i 's|<body><noscript>.*</noscript></body>|<body><noscript>Generate map templates for Farming Simulator from real places in a couple of clicks. Get the realistic terrain, roads, rivers, fields, and more. Completely free and open-source.</noscript></body>|' /usr/local/lib/python3.11/site-packages/streamlit/static/index.html

EXPOSE 8501

Expand Down
60 changes: 0 additions & 60 deletions index.html

This file was deleted.

0 comments on commit 0429ace

Please sign in to comment.