-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use non-root user for alpine images #34162
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #34162 +/- ##
============================================
+ Coverage 59.14% 74.99% +15.85%
============================================
Files 2821 516 -2305
Lines 67981 22746 -45235
Branches 15148 5518 -9630
============================================
- Hits 40208 17059 -23149
+ Misses 24938 5023 -19915
+ Partials 2835 664 -2171
Flags with carried forward coverage won't be shown. Click here to find out more. |
groupmod -n rocketchat nogroup && \ | ||
useradd -u 65533 -r -g rocketchat rocketchat && \ | ||
apk del deps && \ | ||
chown -R rocketchat:rocketchat /app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could add --chown to all COPYs, however, it's not really that many files, one could argue that with COPY --chown it will build faster, but that number hasn't been noticeable. this way, we dont have to do many USER switching shenanigans.
because you moved the
|
@sampaiodiego while I can reduce the number of layers (ignore the last commit), after checking further seems rocketchat's built code with all deps increased in size. I.e..
|
This reverts commit 7ec4096.
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
VLN-82