Skip to content

Instantly share code, notes, and snippets.

@merin83
Forked from tarex/Dockerfile
Created August 8, 2016 04:24
Show Gist options
  • Save merin83/2d5f9b4db7a36c0dadc23b6aa262e8d4 to your computer and use it in GitHub Desktop.
Save merin83/2d5f9b4db7a36c0dadc23b6aa262e8d4 to your computer and use it in GitHub Desktop.
Node.js Dockerfile based on ubuntu 14.04. This is a little smaller than dockerfile/nodejs which depends on python
# Node.js app Docker file
FROM ubuntu:14.04
MAINTAINER Thom Nichols "thom@thomnichols.org"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get -qq update
RUN apt-get install -y nodejs npm
# TODO could uninstall some build dependencies
# fucking debian installs `node` as `nodejs`
RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
VOLUME ["/data"]
ADD . /data
RUN cd /data && npm install
EXPOSE 8888
WORKDIR /data
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment