hackforla / hackforla/peopledepot
Update docker containers to run as non-root user
Open
complexity: medium
feature: docs: PD team documentation
feature: infrastructure
PII: FALSE
role: dev lead
s: PD team
size: 1pt
- Dominant language
- Python
- Stars
- 14
- Forks
- 37
- Avg merge
- 9d 15h
- Merged PRs (30d)
- 5
Description
### Overview
We need to make the Docker containers run as unprivileged user for better security and to resolve a migration files permissions issue for Linux users. Running as root user in the container means it'll create new migration files as root of the host as well, making it unreadable for the normal user until it's chmodded.
### Action Items
- [x] modify Dockerfile to run as normal user
- [x] modify docker-compose file to run as normal user
- [x] add documentation
### Resources/Instructions
- app/Dockerfile
- docker-compose.yml
Contributor guide
Assessment
This issue has not been assessed yet.