You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
266 B
Plaintext

#!/bin/sh
set -eux
IMAGE_NAME="phc/storage"
CONTAINER_NAME="storage"
HOST_PORT="4000"
git pull
docker build -t "$IMAGE_NAME" .
docker stop "$CONTAINER_NAME"
docker run --rm -d --name "$CONTAINER_NAME" --restart unless-stopped -p "$HOST_PORT:4000" "$IMAGE_NAME"