- Install Docker Toolbox
- Run Docker Quickstart Terminal (you can also use Kitematic to launch the CLI)
cd
to your git repository's root directory- Run:
docker run -i -t --rm -e "CIVIS_API_KEY=b5b55...031" -e "DATABASE_USER=youruser" -e "DATABASE_PASSWORD=somePassword" \
-v $(pwd):/app -v /some/local/tmp/directory:/data -w /app --name some-name-that-is-useful \
node bin/your-node-app --flag=123
This is using the node image and assumes that you have a file called your-node-app
in the bin
directory. The first line of that file should