go-zero/example/http/breaker/start.sh
2020-07-26 17:09:05 +08:00

6 lines
156 B
Bash

#!/bin/bash
GOOS=linux go build -ldflags="-s -w" server.go
docker run --rm -it --cpus=1 -p 8080:8080 -v `pwd`:/app -w /app alpine /app/server
rm -f server