Conversation
Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com>
Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Don't run Docker as root user
Don't run Docker as root user
Sep 8, 2025
Test Results8 tests 8 ✅ 0s ⏱️ Results for commit 21e529c. ♻️ This comment has been updated with latest results. |
baynezy
reviewed
Sep 8, 2025
| @@ -0,0 +1,27 @@ | |||
| <testsuites> | |||
Contributor
There was a problem hiding this comment.
@copilot - all files in any folder called TestResults should not be in version control.
Contributor
Author
There was a problem hiding this comment.
You're absolutely right. I've removed the TestResults files from version control in commit 21e529c. The .gitignore already had the correct rules to exclude TestResults directories, but the file was accidentally added in my previous commits.
Co-authored-by: baynezy <1049999+baynezy@users.noreply.github.com>
|
baynezy
approved these changes
Sep 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR addresses a security vulnerability where the Docker container was running as the root user, which violates secure coding practices and increases the attack surface if the container is compromised.
Changes Made
The Dockerfile has been updated to follow Docker security best practices by:
nonrootgroup and user in the Alpine-based runtime stageUSER nonrootinstruction to ensure the container runs with reduced privilegesBefore and After
Before:
After:
Security Impact
Testing
The implementation follows the compliant solution pattern for Alpine-based multi-stage builds as recommended in the security guidelines.
Fixes #233.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.