diff --git a/Dockerfile b/Dockerfile index 40859f2..e60bdc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt FROM python:3.15-rc-slim-trixie -RUN useradd -m -r appuser && \ +RUN useradd -m -r -u 99 appuser && \ mkdir /app && \ chown -R appuser /app diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index d7aac9c..c53b903 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -19,13 +19,15 @@ spec: initContainers: - name: loader image: git.baumann.gr/adebaumann/vui-data-loader:0.11 + securityContext: + runAsUser: 99 command: [ "sh","-c","if [ ! -f /data/db.sqlite3 ] || [ ! -s /data/db.sqlite3 ]; then cp preload/preload.sqlite3 /data/db.sqlite3 && echo 'Database copied from preload'; else echo 'Existing database preserved'; fi" ] volumeMounts: - name: data mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/vui:0.984 + image: git.baumann.gr/adebaumann/vui:0.985 imagePullPolicy: Always securityContext: runAsUser: 99 diff --git a/pages/templates/base.html b/pages/templates/base.html index 9d0d7ac..9ade369 100644 --- a/pages/templates/base.html +++ b/pages/templates/base.html @@ -219,7 +219,7 @@

-

Version {{ version|default:"0.984" }}

+

Version {{ version|default:"0.985" }}