pump dependencies and remove unnecessary venv
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -1,14 +1,12 @@
|
|||||||
# Copyright (c) 2025 Martin Kayser (tebarius)
|
# Copyright (c) 2025 Martin Kayser (tebarius)
|
||||||
# Licensed under the MIT License. See LICENSE file in the project root.
|
# Licensed under the MIT License. See LICENSE file in the project root.
|
||||||
ARG PYTHON_VERSION="3.14"
|
FROM python:3.14-slim
|
||||||
FROM python:${PYTHON_VERSION}-slim
|
|
||||||
LABEL authors="tebarius"
|
LABEL authors="tebarius"
|
||||||
LABEL description="tebarius Mysteryhelfer web"
|
LABEL description="tebarius Mysteryhelfer web"
|
||||||
|
|
||||||
ARG PYTHON_VERSION
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV PATH="/myst-venv/bin:$PATH"
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl \
|
&& apt-get install -y --no-install-recommends curl \
|
||||||
@@ -18,17 +16,16 @@ RUN apt-get update \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN python -m venv /myst-venv \
|
RUN python -m pip install --upgrade pip \
|
||||||
&& python -m pip install --upgrade pip \
|
|
||||||
&& pip install --no-cache-dir -r requirements.txt
|
&& pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY ./app /app
|
COPY ./app /app
|
||||||
# ein bisschen Patchen um auch beim Bookmarken oder Versenden der Webadresse per Messenger den richtigen Titel und das
|
# ein bisschen Patchen um auch beim Bookmarken oder Versenden der Webadresse per Messenger den richtigen Titel und das
|
||||||
# richtige Favicon zu verwenden/sehen
|
# 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|' \
|
RUN sed -i -e 's|favicon\.png|favicon.ico|' \
|
||||||
-e 's|<title>.*</title>|<title>tebarius Mysteryhelfer (web)</title>|' \
|
-e 's|<title>.*</title>|<title>tebarius Mysteryhelfer (web)</title>|' \
|
||||||
/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 \
|
&& useradd -m -u 1000 myst \
|
||||||
&& chown -R myst:myst /app
|
&& chown -R myst:myst /app
|
||||||
USER myst
|
USER myst
|
||||||
|
|||||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user