Skip to content

Instantly share code, notes, and snippets.

@ryanramage
Last active August 29, 2015 14:18
Show Gist options
  • Save ryanramage/d9807c1793570cb73b18 to your computer and use it in GitHub Desktop.
Save ryanramage/d9807c1793570cb73b18 to your computer and use it in GitHub Desktop.
Example Dockerfile
FROM ryanramage/pm2-git-alpine
# Add source files & deps
ADD . /var/www/ui-widgets
WORKDIR /var/www/ui-widgets
# Define mountable directories.
VOLUME ["/var/log/ui-widgets"]
CMD ["pm2", "start", "./bin/cli.js", "--no-daemon", "-e", "/var/log/ui-widgets/saved-search.err.log", "-o", "/var/log/ui-widgets/saved-search.out.log"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment