ci: improve cleanup fallback (chown+chmod before delete) and run web container as uid 1000 to prevent root-owned caches

This commit is contained in:
Esdras Renan 2025-10-16 11:59:32 -03:00
parent 4376ed9c3c
commit 0562c13630
2 changed files with 8 additions and 6 deletions

View file

@ -4,6 +4,8 @@ version: "3.8"
services:
web:
image: node:20-bullseye
# Run as non-root to avoid creating root-owned files on host mounts
user: "1000:1000"
working_dir: /app
command: >
bash -lc "bash /app/scripts/start-web.sh"