kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #364 from GladysNalvarte/install_nodejs
Install nodejs/npm from nodesourcepull/372/head
commit
465177c0cb
|
@ -43,6 +43,11 @@ RUN adduser --disabled-password \
|
|||
${NB_USER}
|
||||
WORKDIR ${HOME}
|
||||
|
||||
RUN wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
|
||||
DISTRO="$(lsb_release -s -c)" \
|
||||
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --yes --no-install-recommends \
|
||||
{% for package in base_packages -%}
|
||||
|
@ -183,9 +188,7 @@ class BuildPack:
|
|||
# Utils!
|
||||
"less",
|
||||
|
||||
# FIXME: Use npm from nodesource!
|
||||
# Everything seems to depend on npm these days, unfortunately.
|
||||
"npm",
|
||||
"nodejs",
|
||||
|
||||
"unzip",
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue