|
|
@@ -14,7 +14,7 @@ WORKDIR /go/release |
|
|
|
ADD . . |
|
|
|
|
|
|
|
# 编译:把main.go编译成可执行的二进制文件,命名为zyos |
|
|
|
RUN GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -tags netgo -ldflags="-s -w" -installsuffix cgo -o zyos_order_task cmd/task/main.go |
|
|
|
RUN GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -tags netgo -ldflags="-s -w" -installsuffix cgo -o community_team_task cmd/task/main.go |
|
|
|
|
|
|
|
FROM ubuntu:xenial as prod |
|
|
|
LABEL maintainer="zengzhengrong" |
|
|
|