diff --git a/cicd/Dockerfile b/cicd/Dockerfile index bdefb9e2..47362516 100644 --- a/cicd/Dockerfile +++ b/cicd/Dockerfile @@ -2,7 +2,8 @@ ARG registry=registry.cn-hangzhou.aliyuncs.com/syschan FROM ${registry}/golang:alpine as builder WORKDIR /app COPY . . -RUN cd server && go generate && source ./cicd/bin/start/.env && go build -o ./cicd/bin/$appName -v . +RUN cd server && go generate +RUN go build -o ./cicd/bin/pms-server -v . FROM ${registry}/alpine:latest WORKDIR /app