Files
noteserver/docker-deploy.sh
2025-08-14 19:58:53 -07:00

12 lines
237 B
Bash
Executable File

#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
echo "[#] sudo $0 $@"
exec sudo "$0" "$@"
fi
docker build -t noteserver .
docker rm noteserver
docker run -d -p 3002:3000 --name noteserver noteserver