aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2019-07-17 12:35:46 -0600
committerAdam Hovorka <[email protected]>2019-07-17 12:35:46 -0600
commit6bb3e72df331ef45a69fe7f76ed4b7e7babe021a (patch)
tree9d9a4c95a92517f4d165fb82f2195446e8e68e5c /run.sh
Initial commit
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..c7b2940
--- /dev/null
+++ b/run.sh
@@ -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