Commit 57a5c8d
authored
Improve Container Security with Non-Root User (appuser) (#427)
* chore: add non-root user to Dockerfile for security hardening
* fix: install pipenv dependencies as appuser to resolve vulture command not found
* feat: enhance Dockerfile security hardening with coverage output permissions
* fix: resolve permission issues for non-root user in all environments
* resolve permission error for non-root user in Dockerfile and compose file
* fix: use named volume for test output to avoid permission issues
* remove unnecessary user switching in Dockerfile
* refactor(docker): use named group 'app' for better readability
- Change group creation from numeric GID to named 'app' group
- Improve code readability and maintainability
- Keep same GID (999) for compatibility1 parent dbc7119 commit 57a5c8d
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
0 commit comments