Merge branch 'master' of https://gitlink.org.cn/JointCloud/pcm-coordinator
Former-commit-id: 712208c0b8b732e2e7bafe1c90bdc62c68b59633
This commit is contained in:
commit
03fe44be19
|
@ -52,7 +52,7 @@ workflow:
|
||||||
docker_username: ((dev.docker_user))
|
docker_username: ((dev.docker_user))
|
||||||
docker_password: ((dev.docker_password))
|
docker_password: ((dev.docker_password))
|
||||||
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core-api"'
|
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core-api"'
|
||||||
image_tag: 'latest'
|
image_tag: '"latest"'
|
||||||
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
|
||||||
docker_file: git_clone_0.git_path + '/api/Dockerfile'
|
docker_file: git_clone_0.git_path + '/api/Dockerfile'
|
||||||
docker_build_path: git_clone_0.git_path
|
docker_build_path: git_clone_0.git_path
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.22.4-alpine3.20 AS builder
|
FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/golang:1.22.4-alpine3.20 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@ COPY . .
|
||||||
|
|
||||||
RUN go env -w GO111MODULE=on \
|
RUN go env -w GO111MODULE=on \
|
||||||
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
||||||
&& go env -w CGO_ENABLED=0
|
&& go env -w CGO_ENABLED=0 \
|
||||||
RUN go build -o pcm-coordinator-api /app/api/pcm.go
|
&& go build -o pcm-coordinator-api /app/api/pcm.go
|
||||||
|
|
||||||
FROM alpine:3.20
|
FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/alpine:3.20
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue