mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 09:21:56 +08:00
- 升级 Dockerfile 中的 Node.js 版本到 22 - 移除 GitHub 仓库中的 ISSUE_TEMPLATE 和 FUNDING 文件 - 修改 push_image.yml 工作流程,更改触发条件和 Docker 镜像名称 - 删除 push_image_next.yml 和 release.yml 工作流程文件
33 lines
438 B
Docker
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"] |