You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
229 B
17 lines
229 B
3 years ago
|
# demo
|
||
|
|
||
|
这是一个由go语言编写的基本http服务,用于各种测试。
|
||
|
|
||
|
## 编译
|
||
|
|
||
|
```bash
|
||
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main main.go
|
||
|
```
|
||
|
|
||
|
## 打包
|
||
|
|
||
|
```bash
|
||
|
docker build -t demo:1.0 .
|
||
|
```
|
||
|
|