Простенький Dockerfile для nodejs

Dockerfile

FROM node:latest

MAINTAINER Dan Wahlin

ENV NODE_ENV=development
ENV PORT=3000

COPY      . /var/www
WORKDIR   /var/www

RUN       npm install

EXPOSE $PORT

ENTRYPOINT ["npm", "start"]


$ docker build -f Dockerfile -t marley/node .


$ docker run -d -p 8080:3000 marley/node