mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-24 09:40:24 +08:00
6 lines
156 B
Bash
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
|