-
Notifications
You must be signed in to change notification settings - Fork 8
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
Red Hat cert requires that images not be run as root #72
Conversation
…e of root user in Dockerfile Signed-off-by: Andrew J. Mauer <ajmauer@gmail.com>
4b9a30a
to
45b6343
Compare
Signed-off-by: Andrew J. Mauer <ajmauer@gmail.com>
45b6343
to
5cafb7d
Compare
Signed-off-by: Andrew J. Mauer <ajmauer@gmail.com>
baseimage/Dockerfile
Outdated
|
||
USER java_user | ||
|
||
RUN chmod -R 755 /stacks/java-openliberty/starterapp |
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.
I don't think you need a chmod here... java_user is the owner
Signed-off-by: Andrew J. Mauer <ajmauer@gmail.com>
WORKDIR /stacks/java-openliberty/starterapp | ||
USER java_user | ||
|
||
RUN chmod -R 755 /stacks/java-openliberty/priming-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.
Don't think we need this since java_user already owns this. But this is an empty dir, so probably not worth respinning.
eliminate usage of root user in Dockerfile/base image
Fixes #71