更新 cicd/Dockerfile
Docker Deploy / build-and-deploy (push) Failing after 17s Details

This commit is contained in:
root 2024-08-17 17:29:01 +08:00
parent f7063eb581
commit eb6b732e62
1 changed files with 2 additions and 1 deletions

View File

@ -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