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

Cleanup PATH variable mangling #1026

Closed
wants to merge 9 commits into from
Closed
11 changes: 9 additions & 2 deletions Dockerfile_mbtci_template
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ RUN set -ex \
&& python2.7 --version \
&& python3 --version

ENV PATH=$PATH:./node_modules/.bin HOME=${MTA_USER_HOME}
# Allow global npm packages install without sudo
RUN set -ex \
&& mkdir ${MTA_USER_HOME}/.npm-global \
jerome-benoit marked this conversation as resolved.
Show resolved Hide resolved
&& mkdir ${MTA_USER_HOME}/.npm-global/lib \
&& chown -R ${MTA_USER}:${MTA_USER} ${MTA_USER_HOME}
ENV NPM_CONFIG_PREFIX ${MTA_USER_HOME}/.npm-global
Copy link
Member

Choose a reason for hiding this comment

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

according to the spec it's
ENV <key>=<value>
does it work without the equal too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both are working. The current Dockerfile use space, so let's keep it consistent with the style already used.


ENV PATH=$PATH:./node_modules/.bin
WORKDIR /project
USER ${MTA_USER}
USER ${MTA_USER}