Skip to content

Instantly share code, notes, and snippets.

@sedouard
Created January 27, 2015 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sedouard/38b41c5e991c29ca8c8f to your computer and use it in GitHub Desktop.
Save sedouard/38b41c5e991c29ca8c8f to your computer and use it in GitHub Desktop.
An example of using Dockerfile for Nodejs with Dokku on an Ubuntu container
FROM ubuntu:trusty
MAINTAINER Steven Edouard <steven.edouard1@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y
RUN apt-get -qq update -y
RUN apt-get install -y nodejs npm -y
#install any specific things you need on this ubuntu box
VOLUME ["/data"]
ADD . /data
WORKDIR /data
CMD cd /data; npm install; npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment