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

Fix nvm installation #27

Closed
wants to merge 4 commits into from
Closed

Fix nvm installation #27

wants to merge 4 commits into from

Conversation

maackle
Copy link
Contributor

@maackle maackle commented Jan 6, 2018

The only important change here is line 23,ENV NVM_DIR /root/.nvm. The old version, ENV NVM_DIR $HOME/.nvm doesn't work because Docker doesn't recognize $HOME in that context. So, it thinks NVM_DIR is actually /.nvm, which causes that directory to be created and node versions to be installed in there, which messes up the installation.

While I was testing this out I moved libsodium earlier in the Dockerfile because it's the lengthiest step and altering the node install shouldn't re-trigger a libsodium build.

I also unnecessarily bumped up the node version, because why not?

If you want I can get rid of these extraneous changes.

@staltz
Copy link
Owner

staltz commented Jan 7, 2018

Hi :)
Thanks for submitting this PR. Does the /root folder exist always?

@maackle
Copy link
Contributor Author

maackle commented Jan 7, 2018

I'm not sure. That's why I made that big comment :) I assume so though, as long as the base xenial image stays the same. I wonder if there's a better way?

@staltz
Copy link
Owner

staltz commented Mar 20, 2018

I believe this is now done in master branch

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