-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cleanup PATH variable mangling #1026
Changes from 2 commits
24a0f5e
7f5f1fd
9fa7ca9
68a9b75
8b3a2a0
31f6cb1
8edaa91
14f578f
bcf6c26
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,6 +212,12 @@ RUN set -ex \ | |
&& python2.7 --version \ | ||
&& python3 --version | ||
|
||
# Allow global npm packages install without sudo | ||
RUN set -ex \ | ||
&& mkdir ${USER_HOME_DIR}/.npm-global \ | ||
&& chown ${USER}:${USER} ${USER_HOME_DIR}/.npm-global | ||
jerome-benoit marked this conversation as resolved.
Show resolved
Hide resolved
|
||
ENV NPM_CONFIG_PREFIX ${USER_HOME_DIR}/.npm-global | ||
|
||
ENV PATH=$PATH:./node_modules/.bin HOME=${MTA_USER_HOME} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. on the image i used i do not have this path entry:
is it intended that the root user has the home of mta?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not intended and a genuine security bug, and as well as the HOME env variable redefinition. Thanks.
jerome-benoit marked this conversation as resolved.
Show resolved
Hide resolved
|
||
WORKDIR /project | ||
USER ${MTA_USER} | ||
USER ${MTA_USER} |
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.
wonder why USER/USER_HOME_DIR instead of MTA_USER/MTA_USER_HOME is used!?
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.
Cut&paste typo ...
Thanks.