ok i think this good :3

This commit is contained in:
user
2025-08-14 19:58:53 -07:00
parent f8a8963cab
commit b5f0253e65
4 changed files with 26 additions and 28 deletions

View File

@@ -1,5 +1,11 @@
#!/bin/bash
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o noteserver .
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 80:3000 --name noteserver noteserver
docker run -d -p 3002:3000 --name noteserver noteserver