update Dockerfile

This commit is contained in:
Yoan.liu
2025-05-23 16:48:41 +08:00
parent c34346cb31
commit 6b9f295167
2 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ WORKDIR /app
COPY ../. /app/
RUN rm -rf /app/ui/dist
COPY --from=webui-builder /app/ui/dist /app/ui/dist
RUN go build -o certimate
ENV CGO_ENABLED=0
RUN go build -ldflags="-s -w" -o certimate