certimate/Dockerfile
wood chen 4b395ff9d5 chore: 更新 Docker 构建配置和工作流程
- 升级 Dockerfile 中的 Node.js 版本到 22
- 移除 GitHub 仓库中的 ISSUE_TEMPLATE 和 FUNDING 文件
- 修改 push_image.yml 工作流程,更改触发条件和 Docker 镜像名称
- 删除 push_image_next.yml 和 release.yml 工作流程文件
2025-03-09 05:14:28 +08:00

33 lines
438 B
Docker

FROM node:22-alpine3.19 AS front-builder
WORKDIR /app
COPY . /app/
RUN \
cd /app/ui && \
npm install && \
npm run build
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY ../. /app/
RUN rm -rf /app/ui/dist
COPY --from=front-builder /app/ui/dist /app/ui/dist
RUN go build -o certimate
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/certimate .
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]