Former-commit-id: 712208c0b8b732e2e7bafe1c90bdc62c68b59633
This commit is contained in:
tzwang 2024-06-27 17:45:06 +08:00
commit 03fe44be19
2 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ workflow:
docker_username: ((dev.docker_user))
docker_password: ((dev.docker_password))
image_name: '"registry.cn-hangzhou.aliyuncs.com/jcce/pcm-core-api"'
image_tag: 'latest'
image_tag: '"latest"'
registry_address: '"registry.cn-hangzhou.aliyuncs.com"'
docker_file: git_clone_0.git_path + '/api/Dockerfile'
docker_build_path: git_clone_0.git_path

View File

@ -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
@ -6,10 +6,10 @@ COPY . .
RUN go env -w GO111MODULE=on \
&& go env -w GOPROXY=https://goproxy.cn,direct \
&& go env -w CGO_ENABLED=0
RUN go build -o pcm-coordinator-api /app/api/pcm.go
&& go env -w CGO_ENABLED=0 \
&& 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