Created
June 4, 2015 01:47
-
-
Save reharik/24b71a930763aa673671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node base image