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|