From 88f44174e5a349f829a0ca9c3a3a4dc95673309e Mon Sep 17 00:00:00 2001 From: tebarius Date: Wed, 4 Feb 2026 21:40:01 +0100 Subject: [PATCH] pump dependencies and remove unnecessary venv --- Dockerfile | 13 +++++-------- requirements.txt | Bin 264 -> 296 bytes 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a13ca1..18f0999 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ # Copyright (c) 2025 Martin Kayser (tebarius) # Licensed under the MIT License. See LICENSE file in the project root. -ARG PYTHON_VERSION="3.14" -FROM python:${PYTHON_VERSION}-slim +FROM python:3.14-slim LABEL authors="tebarius" LABEL description="tebarius Mysteryhelfer web" -ARG PYTHON_VERSION ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 -ENV PATH="/myst-venv/bin:$PATH" + RUN apt-get update \ && apt-get install -y --no-install-recommends curl \ @@ -18,17 +16,16 @@ RUN apt-get update \ WORKDIR /app COPY requirements.txt . -RUN python -m venv /myst-venv \ - && python -m pip install --upgrade pip \ +RUN python -m pip install --upgrade pip \ && pip install --no-cache-dir -r requirements.txt COPY ./app /app # 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 /myst-venv/lib/python${PYTHON_VERSION}/site-packages/streamlit/static/favicon.ico +COPY ./app/images/favicon.ico /usr/local/lib/python3.14/site-packages/streamlit/static/favicon.ico RUN sed -i -e 's|favicon\.png|favicon.ico|' \ -e 's|.*|tebarius Mysteryhelfer (web)|' \ - /myst-venv/lib/python${PYTHON_VERSION}/site-packages/streamlit/static/index.html \ + /usr/local/lib/python3.14/site-packages/streamlit/static/index.html \ && useradd -m -u 1000 myst \ && chown -R myst:myst /app USER myst diff --git a/requirements.txt b/requirements.txt index ca16185330e463dafe8c48c6d6c7fd820dc52ae6..950a6acb1d4284ece520669a308af9553479a6a4 100644 GIT binary patch delta 68 zcmeBRTER3yj@5)gkHKJ~vOcRBkYPA6JfG2G;&E#=BL-duE{0NuB8D6w%w$MnFlMj? NLL;CmkV<2)JOJVZ3(f!l delta 36 qcmZ3%)WI}Cj@5`kkHKi7vOcRRkYPMAJfG2g;&E#>0|s6OE(QRV8V6?p