...
|
...
|
@@ -22,7 +22,7 @@ FROM golang:alpine AS builder |
|
|
RUN mkdir /app
|
|
|
COPY . /app
|
|
|
WORKDIR /app
|
|
|
RUN GO111MODULE="on" GOPROXY="https://goproxy.cn" GOFLAGS=-mod=vendor CGO_ENABLED=0 GOOS=linux go build -o partner
|
|
|
RUN GO111MODULE="on" GOPROXY="https://goproxy.cn" GOFLAGS="-mod=vendor" CGO_ENABLED=0 GOOS=linux go build -o partner
|
|
|
|
|
|
############################
|
|
|
# STEP 2 build a small image
|
...
|
...
|
|