Skip to content
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

Nonroot User in Docker Image #133

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Nonroot User in Docker Image #133

merged 1 commit into from
Oct 12, 2023

Conversation

onelapahead
Copy link
Contributor

@onelapahead onelapahead commented Oct 10, 2023

Aiming to support arbitrary user IDs, or non-root numeric users, for running in clouds like OpenShift.

Comment on lines +26 to +28
RUN chgrp -R 0 /app/ \
&& chmod -R g+rwX /app/
USER 1001
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one might have the same problem as the other PR that you fixed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not because in this one we're assuming the USER till after we've done everything else.

I may refactor one or the other Dockerfiles to be more consistent with when we do npm i's and with what users once I've tested out these images at runtime. Because right now these similar runtimes go about their dockerfiles / bundling a bit different for reasons I don't yet appreciate.

@nguyer nguyer merged commit 6f759a2 into hyperledger:main Oct 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants