diff --git a/Dockerfile b/Dockerfile index b29a5453..f2d485cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,33 +1,23 @@ -FROM node:20-alpine3.19 AS front-builder - +FROM node:20-alpine3.19 AS webui-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 - +COPY --from=webui-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"] \ No newline at end of file +ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"] diff --git a/README.md b/README.md index 7daffaaf..0e32d29e 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Certimate 旨在为用户提供一个安全、简便的 SSL 证书管理解决 相关文章: -- [使用 CNAME 实现 DNS-01 challenge](https://docs.certimate.me/blog/cname) +- [使用 CNAME 完成 ACME DNS-01 质询](https://docs.certimate.me/blog/cname) - [v0.3.0:第二个不向后兼容的大版本](https://docs.certimate.me/blog/v0.3.0) - [v0.2.0:第一个不向后兼容的大版本](https://docs.certimate.me/blog/v0.2.0) - [Why Certimate?](https://docs.certimate.me/blog/why-certimate) diff --git a/README_EN.md b/README_EN.md index 3b0506c8..55999bfc 100644 --- a/README_EN.md +++ b/README_EN.md @@ -69,7 +69,7 @@ Please visit the documentation site [docs.certimate.me](https://docs.certimate.m Related articles: -- [使用 CNAME 实现 DNS-01 challenge](https://docs.certimate.me/blog/cname) +- [使用 CNAME 完成 ACME DNS-01 质询](https://docs.certimate.me/blog/cname) - [v0.3.0:第二个不向后兼容的大版本](https://docs.certimate.me/blog/v0.3.0) - [v0.2.0:第一个不向后兼容的大版本](https://docs.certimate.me/blog/v0.2.0) - [Why Certimate?](https://docs.certimate.me/blog/why-certimate)