fix: Run container as root to fix react-router permission denied
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Change Dockerfile to run as root instead of peikarband user
- Update Helm values.yaml to use root user (runAsUser: 0, runAsNonRoot: false)
- Improve entrypoint.sh permission handling with reusable function
- Add reflex init before run if packages not installed
- Fix node_modules/.bin permissions for symlinks and targets

This resolves the 'react-router: Permission denied' error by running
containers with root privileges. TODO: Switch back to non-root user
after permission issues are fully resolved.
This commit is contained in:
Ehsan.Asadi
2025-12-31 12:30:41 +03:30
parent 694852a09e
commit a1f53c59c7
3 changed files with 69 additions and 49 deletions

View File

@@ -50,10 +50,12 @@ podAnnotations:
prometheus.io/port: "8000"
prometheus.io/path: "/metrics"
# Running as root for now to avoid permission issues
# TODO: Switch back to non-root user after permission issues are resolved
podSecurityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 1000
runAsNonRoot: false
runAsUser: 0
fsGroup: 0
securityContext:
allowPrivilegeEscalation: false