build: 分离开发与发布环境的 Docker 构建配置
Docker Build and Push / build (push) Has been cancelled
custom-deploy-your-server / build-deploy (push) Has been cancelled
deploy-demo-site / build-deploy (push) Has been cancelled
Deploy Docs to GitHub Pages / build (push) Has been cancelled
Deploy Docs to GitHub Pages / Deploy (push) Has been cancelled

- 新增 Dockerfile.release 用于生产环境,仅包含运行所需的最小依赖
- 重构原 Dockerfile 为多阶段构建,集成前端构建与后端编译
- 更新 .goreleaser.yaml 以使用新的发布镜像配置
- 新增 GitHub Actions 工作流用于自动构建和推送 Docker 镜像
This commit is contained in:
2026-02-10 19:57:51 +08:00
parent 26e45ce8c3
commit fbf7885131
4 changed files with 138 additions and 12 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM debian:latest
ENV TZ=Asia/Shanghai
RUN apt update \
&& apt install -y ca-certificates \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY ./ /app/
WORKDIR /app
EXPOSE 8000
CMD ["/app/Message-Nest"]