Skip to content

Instantly share code, notes, and snippets.

@davemo
Created March 22, 2017 20:35
Show Gist options
  • Save davemo/872331b3cbcd156a0b6eee519145746e to your computer and use it in GitHub Desktop.
Save davemo/872331b3cbcd156a0b6eee519145746e to your computer and use it in GitHub Desktop.
nodenv exits with a 1 value with vanilla docker image with missing deps
FROM ubuntu:xenial
MAINTAINER Test Double <[email protected]>
RUN apt-get -y update
RUN apt-get -y install git-core
ENV NODENV_ROOT /usr/local/lib/nodenv
RUN git clone https://github.com/nodenv/nodenv.git ${NODENV_ROOT}
RUN git clone https://github.com/nodenv/node-build.git ${NODENV_ROOT}/plugins/node-build
RUN git clone https://github.com/nodenv/nodenv-update.git ${NODENV_ROOT}/plugins/nodenv-update
ENV PATH ${NODENV_ROOT}/shims:${NODENV_ROOT}/bin:$PATH
CMD ["/bin/bash"]
RUN nodenv update
RUN nodenv install 6.9.4
@davemo
Copy link
Author

davemo commented Mar 22, 2017

looks like curl is the only dep needed to fix the installation up to this point :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment