Skip to content

add USER directive to generated Dockerfile #2801

@adk-swisstopo

Description

@adk-swisstopo

Most (all?) the Dockerfiles that are generated do not contain a USER directive. This means the code within the container runs as root by default. This does not seem desirable. Please consider add a USER directive to the generated Dockerfiles such that the containers have a default non-root user.

If you think it makes sense and can point me in the right direction about how to implement this, I may be able to send a PR for this. CONTRIBUTING.md says to "check the chapter Adding and modifying containers" but I cannot find that chapter anywhere in this repository.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions