feat:增加一个快捷的build docker镜像的脚本,用于本地测试
This commit is contained in:
8
build_image.sh
Executable file
8
build_image.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 本地构建镜像的快速脚本,避免在命令行反复输入构建参数。
|
||||||
|
|
||||||
|
docker build -t sub2api:latest \
|
||||||
|
--build-arg GOPROXY=https://goproxy.cn,direct \
|
||||||
|
--build-arg GOSUMDB=sum.golang.google.cn \
|
||||||
|
-f Dockerfile \
|
||||||
|
.
|
||||||
Reference in New Issue
Block a user