Compare commits

...

1 Commits

Author SHA1 Message Date
27e78d6f39 New images in Dockerfile
Some checks failed
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 6s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/vui-data-loader) (push) Successful in 6s
SonarQube Scan / SonarQube Trigger (push) Failing after 9s
2026-02-05 12:41:29 +01:00

View File

@@ -1,13 +1,17 @@
FROM python:3.15-rc-trixie AS baustelle FROM python:3.15.0a5-trixie AS baustelle
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
RUN pip install --upgrade pip RUN pip install --upgrade pip
COPY requirements.txt /app/ 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 && \ RUN useradd -m -r -u 99 appuser && \
mkdir /app && \ mkdir /app && \
chown -R appuser /app chown -R appuser /app
@@ -35,5 +39,8 @@ RUN rm -rvf /app/Dockerfile* \
/app/scripts \ /app/scripts \
/app/test_*.py && \ /app/test_*.py && \
python3 /app/manage.py collectstatic --noinput 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"] CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]