huangjiajun 2 mesi fa
parent
commit
d99edbc520
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      Dockerfile-task

+ 1
- 1
Dockerfile-task Vedi File

@@ -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"


Caricamento…
Annulla
Salva