ok i think this good :3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user