|
|
@ -10,10 +10,14 @@ HOST_PORT="4000"
|
|
|
|
git pull
|
|
|
|
git pull
|
|
|
|
docker build -t "$IMAGE_NAME" .
|
|
|
|
docker build -t "$IMAGE_NAME" .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Tries to remove the previous container
|
|
|
|
docker stop "$CONTAINER_NAME" || true
|
|
|
|
docker stop "$CONTAINER_NAME" || true
|
|
|
|
|
|
|
|
docker rm "$CONTAINER_NAME" || true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Starts the new container
|
|
|
|
docker run -d \
|
|
|
|
docker run -d \
|
|
|
|
--name "$CONTAINER_NAME" \
|
|
|
|
--name "$CONTAINER_NAME" \
|
|
|
|
--rm \
|
|
|
|
--restart unless-stopped \
|
|
|
|
-p "$HOST_PORT:4000" \
|
|
|
|
-p "$HOST_PORT:4000" \
|
|
|
|
-v "$(pwd)/buckets:/app/buckets" \
|
|
|
|
-v "$(pwd)/buckets:/app/buckets" \
|
|
|
|
-v "$(pwd)/database.local.json:/app/database.local.json" \
|
|
|
|
-v "$(pwd)/database.local.json:/app/database.local.json" \
|
|
|
|