You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/example/http/breaker/start.sh

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