-
Notifications
You must be signed in to change notification settings - Fork 563
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
Conversation
@@ -35,9 +38,6 @@ FROM base | |||
|
|||
COPY --from=builder /go/bin/starport /usr/bin |
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.
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.
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.
@ilgooz I'll try it tonight
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.
@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
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.
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.
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.
Thanks for checking it out!
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.
utACK
This PR is intended to address #1202 by switching users earlier.
Using

starport/cli:latest
Using my build:
