All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 15s
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 4s
SonarQube Scan / SonarQube Trigger (push) Successful in 47s
- Add new "alle-kommentare" (all comments) view for staff users only - Allows staff to view and manage all user comments across the system - Grouped by document with user information displayed - Staff can delete any comment via the dedicated delete button - Restricts access via user_passes_test decorator - Create all_comments.html template - Based on user_comments template with added username field - Shows comment author, creation time, and edit time - Provides delete functionality for comment management - Update navigation menu - Add "Alle Kommentare" link in user dropdown menu - Link only visible to staff members - Add URL route for alle-kommentare page - Path: /dokumente/alle-kommentare/ - URL name: all_comments - Bump application versions - Update footer version from 0.965 to 0.966 - Update K8s deployment version from 0.917 to 0.918 - ArgoCD deployment already at 0.966 All existing tests pass (148 tests total)
37 lines
1.1 KiB
Docker
37 lines
1.1 KiB
Docker
FROM python:3.14 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
|
|
|
|
FROM python:3.14-slim
|
|
RUN useradd -m -r appuser && \
|
|
mkdir /app && \
|
|
chown -R appuser /app
|
|
|
|
COPY --from=baustelle /usr/local/lib/python3.14/site-packages/ /usr/local/lib/python3.14/site-packages/
|
|
COPY --from=baustelle /usr/local/bin/ /usr/local/bin/
|
|
RUN rm /usr/bin/tar /usr/lib/x86_64-linux-gnu/libncur*
|
|
WORKDIR /app
|
|
COPY --chown=appuser:appuser . .
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
USER appuser
|
|
EXPOSE 8000
|
|
RUN rm -rvf /app/Dockerfile* \
|
|
/app/README.md \
|
|
/app/argocd \
|
|
/app/k8s \
|
|
/app/data-loader \
|
|
/app/keys \
|
|
/app/requirements.txt \
|
|
/app/node_modules \
|
|
/app/*.json \
|
|
/app/test_*.py && \
|
|
python3 /app/manage.py collectstatic --noinput
|
|
CMD ["gunicorn","--bind","0.0.0.0:8000","--workers","3","VorgabenUI.wsgi:application"]
|
|
|