8000 fix(dockerfile): switch user earlier to mitigate perms issues by martin-sweeny · Pull Request #1243 · ignite/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(dockerfile): switch user earlier to mitigate perms issues #1243

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

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

martin-sweeny
Copy link
Contributor

This PR is intended to address #1202 by switching users earlier.

Using starport/cli:latest
image

Using my build:
image

@@ -35,9 +38,6 @@ FROM base

COPY --from=builder /go/bin/starport /usr/bin
Copy link
Member
@ilgooz ilgooz Jun 14, 2021

Choose a reason for hiding this comment

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

What about moving them above this line? Because this is the actual image will be used by the end users, and we might migrate the base image to alphine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ilgooz I'll try it tonight

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ilgooz sorry, there's a lot going on in the attached screenshot, but it seems that the permissions issue persists if I put the USER line there

image

Copy link
Member
@ilgooz ilgooz Jun 15, 2021

Choose a reason for hiding this comment

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

Oh okay, can we also try setting a chmod with "RUN chmod 744 (or other)" after the "USER" param to see if it'll fix it? Otherwise, we can keep things as before.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for checking it out!

Copy link
Contributor
@fadeev fadeev left a comment

Choose a reason for hiding this comment

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

utACK

@ilgooz ilgooz merged commit 54f9bae into ignite:develop Jun 15, 2021
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
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.

3 participants
0