Add USER to Docker file
Open
future
- Dominant language
- Python
- Stars
- 83
- Forks
- 37
- Avg merge
- 1d 3m
- Merged PRs (30d)
- 26
Description
A user should be specified in the dockerfile, otherwise the image will run as root.
Ref : https://github.com/ansys/pymechanical/pull/567/files#annotation_17202978805
Contributor guide
Research direction
Start by locating the repository's Dockerfile and review the referenced pull request for the intended user configuration. Add a non-root USER declaration, then build the image and verify that it runs as that user rather than root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, security
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100