Skip to content

Instantly share code, notes, and snippets.

@superhero
Created September 18, 2015 08: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 superhero/14652ffe805c95f34fb4 to your computer and use it in GitHub Desktop.
Save superhero/14652ffe805c95f34fb4 to your computer and use it in GitHub Desktop.
NodeJS docker file
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN ln -snf /usr/share/zoneinfo/Europe/Madrid /etc/localtime && echo "Europe/Madrid" > /etc/timezone
RUN apt-get -y update && apt-get -y install \
build-essential git python
RUN git clone git://github.com/nodejs/node.git /tmp/nodejs \
&& cd /tmp/nodejs \
&& git checkout v4.0.0 \
&& ./configure \
&& make \
&& make install \
&& rm -rf /tmp/nodejs
RUN apt-get autoremove -y \
&& apt-get clean all
ENTRYPOINT ["node"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment