3 ways to have Nodejs in Docker

    • Use official Nodejs image

FROM node:0.10.38

    • Use chrislea’s PPA

FROM ubuntu:14.04
RUN apt-get install -y software-properties-common
RUN apt-add-repository ppa:chris-lea/node.js
RUN apt-get update
RUN apt-get install -y nodejs

    • Use curl

FROM ubuntu:14.04
RUN apt-get install -y curl software-properties-common
RUN mkdir /nodejs && curl http://nodejs.org/dist/v0.10.38/node-v0.10.38-linux-x64.tar.gz | tar xvzf – -C /nodejs –strip-components=1
ENV PATH $PATH:/nodejs/bin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: