Skip to content

Instantly share code, notes, and snippets.

@jamesnesfield
Last active August 29, 2015 14:05
Show Gist options
  • Save jamesnesfield/0bf5059c48bd0803f9d1 to your computer and use it in GitHub Desktop.
Save jamesnesfield/0bf5059c48bd0803f9d1 to your computer and use it in GitHub Desktop.
dockerise heroku node app
//from https://github.com/shykes/vr_node_example/blob/master/Dockerfile
from heroku/heroku-buildpack-nodejs
maintainer Solomon Hykes <solomon@dotcloud.com>
add . /app
run /buildpack/bin/compile /app /tmp
cmd ["sh", "-c", "PORT=5000 /app/bin/node /app/web.js"]
expose 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment