13 lines
227 B
Bash
Executable File
13 lines
227 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
CONTAINER_NAME="phc/storage"
|
|
HOST_PORT="4000"
|
|
|
|
git pull
|
|
docker build -t "$CONTAINER_NAME" .
|
|
|
|
docker stop "$CONTAINER_NAME"
|
|
docker run --rm -d --restart unless-stopped -p "$HOST_PORT:4000" "$CONTAINER_NAME"
|