From eb8133f1a7ede5d9832196dbae5658ce9d58363d Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 14:13:23 +0200 Subject: [PATCH] Added a deploy script --- deploy | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 deploy diff --git a/deploy b/deploy new file mode 100755 index 0000000..b0d5202 --- /dev/null +++ b/deploy @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eux + +CONTAINER_NAME="phc/storage" + +git pull +docker build -t "$CONTAINER_NAME" . +docker run --rm -d -p 4000:4000 "$CONTAINER_NAME"