Skip to content

Instantly share code, notes, and snippets.

@davemo
Created March 22, 2017 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 <dave@testdouble.com>
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