- pump streamlit to v1.52.1

- pump numpy to v2.3.5
- run container with
This commit is contained in:
2025-12-09 23:23:39 +01:00
parent ad208f3403
commit 787cb10e21
3 changed files with 11 additions and 92 deletions

View File

@@ -5,27 +5,30 @@ LABEL description="tebarius Mysteryhelfer web"
WORKDIR /app
RUN apt-get update \
&& apt-get install -y curl \
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install --upgrade pip
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /app
RUN python -m pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# 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
/usr/local/lib/python3.13/site-packages/streamlit/static/index.html \
&& useradd -m -u 1000 myst \
&& chown -R myst:myst /app
USER myst
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]