fix bugs
Former-commit-id: 4e5d6953ebc35d50323397c3da0b3bfefc206b6c
This commit is contained in:
parent
55d7906115
commit
5ba09371c1
|
@ -2,14 +2,14 @@ FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/golang:1.22.4-alpine3.20 AS b
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
LABEL stage=gobuilder
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GOARCH amd64
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go env -w GO111MODULE=on \
|
||||
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
||||
&& go env -w CGO_ENABLED=0 \
|
||||
&& go build -o pcm-coordinator-api /app/api/pcm.go
|
||||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/alpine:3.20
|
||||
COPY api/etc/ /app/
|
||||
RUN go mod download && go build -o pcm-coordinator-api /app/api/pcm.go
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
|
Loading…
Reference in New Issue