added apk commands
All checks were successful
Tests / Declarative: Post Actions No test results found
csharp-secdevops-pipeline-pod/pipeline/head This commit looks good

This commit is contained in:
2026-06-11 09:33:52 +02:00
parent 707e39e70a
commit 77d7bb758d

View File

@@ -25,6 +25,10 @@ ENV ASPNETCORE_URLS=http://+:8080
# Wechseln auf root (nur kurz)
USER root
# OS patchen
RUN apk update && apk upgrade --no-cache
# Ändern des File Owner (wichtig dass die Sqlite DB geschrieben werden kann)
RUN mkdir -p /app/data && chown -R app:app /app/data && chmod -R 775 /app/data
# Wechsel auf non-root User (app ist ein vorinstallierter User von Microsoft)