Updated deploy script

main
Antonio De Lucreziis 2 years ago
parent 28feaba860
commit e7611c37bf

@ -3,7 +3,10 @@
set -eux set -eux
CONTAINER_NAME="phc/storage" CONTAINER_NAME="phc/storage"
HOST_PORT="4000"
git pull git pull
docker build -t "$CONTAINER_NAME" . docker build -t "$CONTAINER_NAME" .
docker run --rm -d -p 4000:4000 "$CONTAINER_NAME"
docker stop "$CONTAINER_NAME"
docker run --rm -d --restart unless-stopped -p "$HOST_PORT:4000" "$CONTAINER_NAME"

Loading…
Cancel
Save