Skip to content

Instantly share code, notes, and snippets.

@reharik
Created June 4, 2015 01:47
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 reharik/24b71a930763aa673671 to your computer and use it in GitHub Desktop.
Save reharik/24b71a930763aa673671 to your computer and use it in GitHub Desktop.
# Dockerfile for a base node installation with NVM
FROM debian:wheezy
USER root
RUN \
mkdir -p /opt/app/current && \
mkdir -p /var/log/nodejs && \
mkdir -p /var/run/nodejs && \
echo DIRECTORIES BUILT && \
echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list && \
echo ADDING APT BACKPORTS SOURCES REF && \
apt-get update && \
echo APT-GET UPDATED && \
apt-get -yqt wheezy-backports install curl gnupg git python build-essential && \
echo APT-GET PACKAGES INSTALLED && \
apt-get clean && \
echo APT-GET CLEANED && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
echo REMOVED TEMPORARY FILES
# curl https://raw.githubusercontent.com/creationix/nvm/v0.25.1/install.sh | bash && \
# echo NVM INSTALLED
@reharik
Copy link
Author

reharik commented Jun 4, 2015

node base image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment