Public Repository

Last pushed: 7 months ago
Short Description
Bare minimum Node.js images based on debian:jessie
Full Description

Usage:

$ docker run kilianciuffolo/node node -v

Dockerfile

# boilerplate
FROM debian:jessie
MAINTAINER me@nailik.org

ENV DEBIAN_FRONTEND noninteractive

# pkgs
RUN \
  apt-get update && \
  apt-get install --no-install-recommends -y -q \
    ca-certificates \
    curl \
    g++ \
    git \
    make \
    python \
    && \
  apt-get clean autoclean && \
  apt-get autoremove -y && \
  rm -rf /var/lib/{apt,dpkg,cache,log}/

# node
ENV PATH $PATH:/node/bin

RUN \
  export NODE_VERSION=__VERSION__ && \
  export NODE_URL=http://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz && \
  mkdir /node && \
  curl --silent $NODE_URL | tar xvzf - -C /node --strip-components=1
Docker Pull Command
Owner
kilianciuffolo

Comments (0)