Skip to content

Update docker containers to run as non-root user #647

@fyliu

Description

@fyliu

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

  • modify Dockerfile to run as normal user
  • modify docker-compose file to run as normal user
  • add documentation

Resources/Instructions

  • app/Dockerfile
  • docker-compose.yml

Metadata

Metadata

Assignees

Labels

complexity: mediumStraightforward but some complexity (e.g., involves multiple files)feature: docs: PD team documentationdocumentation on PD team processes and architecture, etc.feature: infrastructureFor changes on site technical architecturerole: dev leads: PD teamstakeholder: People Depot Teamsize: 1ptCan be done in 4-6 hours

Type

No type

Projects

Status

🏗In progress-actively working

Relationships

None yet

Development

No branches or pull requests

Issue actions