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