diff options
author | Adam Hovorka <[email protected]> | 2019-07-17 12:35:46 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2019-07-17 12:35:46 -0600 |
commit | 6bb3e72df331ef45a69fe7f76ed4b7e7babe021a (patch) | |
tree | 9d9a4c95a92517f4d165fb82f2195446e8e68e5c /run.sh |
Initial commit
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/bin/bash + +docker rm -f nomicvote &>/dev/null +docker build -qt nomicvote:latest . | sed 's/^sha256://' +docker run -d --init --rm -p 8080:8080 --name nomicvote nomicvote:latest +if [[ "$1" = "-f" ]]; then docker logs -f nomicvote; fi + +#docker run -d --init -p 8080:8080 \ +# -m "300M" --memory-swap "1G" \ +# --name "nomicvote" \ +# --restart always \ +# nomicvote:latest + +#PORT=8080 NODE_ENV=production node app.js |