Public Repository

Last pushed: 3 years ago
Short Description
Simple container replacing the nodejs on the host computer.
Full Description


Please note that this image is based on Maven because I have a project that needs both Maven and NodeJS. So this image addresses both dependencies.

FROM maven:3.3-jdk-8

RUN apt-get -qq update \
  && apt-get install -y curl \
  && curl -sL | bash - \
  && apt-get install -y bzip2 make nodejs \
  && npm install -g inherits bower grunt grunt-cli

RUN useradd -ms /bin/bash developer

USER developer
WORKDIR /home/developer

node script


CMD=$(basename $0)

docker run \
  -it \
  --rm \
  -p 1337:1337 \
  -v "$PWD":/home/developer/source \
  -w /home/developer/source \
  medined/nodejs \
  $CMD $@

Create symbolic links from node to bower, grunt, and npm.

Docker Pull Command