From 27e78d6f3925a2e535dccf26d648e1e7fbd06c97 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Thu, 5 Feb 2026 12:41:29 +0100 Subject: [PATCH] New images in Dockerfile --- Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e60bdc4..aa8d3c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,17 @@ -FROM python:3.15-rc-trixie AS baustelle +FROM python:3.15.0a5-trixie AS baustelle RUN mkdir /app WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 RUN pip install --upgrade pip COPY requirements.txt /app/ -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt && \ + apt-get update && \ + apt-get install -y curl && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* -FROM python:3.15-rc-slim-trixie +FROM python:3.15.0a5-slim-trixie RUN useradd -m -r -u 99 appuser && \ mkdir /app && \ chown -R appuser /app @@ -35,5 +39,8 @@ RUN rm -rvf /app/Dockerfile* \ /app/scripts \ /app/test_*.py && \ python3 /app/manage.py collectstatic --noinput +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ + CMD curl -f http://localhost:8000/ || exit 1 + CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]