forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Backports.debian.org
Rod Vagg edited this page Sep 22, 2015
·
1 revision
Run the following (as root):
echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install nodejs
Run the following (as root):
echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get install nodejs-legacy
curl -L --insecure https://www.npmjs.org/install.sh | bash
You could use it in your Dockerfile like this:
FROM debian:wheezy
MAINTAINER Your Self "[email protected]"
# method from https://github.com/joyent/node/wiki/backports.debian.org
RUN echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list \
&& DEBIAN_FRONTEND=noninteactive apt-get -y update \
&& apt-get install -y curl nodejs-legacy \
&& curl -L --insecure -O https://www.npmjs.org/install.sh \
&& /bin/bash install.sh \