This commit is contained in:
laodaming 2023-08-03 17:12:58 +08:00
parent 9f01ecaf80
commit 57af3338a2

View File

@ -8,3 +8,5 @@ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/api-$na
docker rmi -f api-$name-srv:latest
#打包docker镜像
docker build -t api-$name-srv:latest .
#上传镜像到dockerhub
#docker push api-$name-srv:latest