Commit Graph
10 Commits
Author SHA1 Message Date
zimonianhua 9e38fe239d build: 将 mime-support 替换为 media-types
Docker Build and Push / build (push) Has been cancelled
Debian 12 中已弃用 mime-support 包,media-types 是其替代品。此变更为确保在较新 Debian 版本中能成功构建镜像。
2026-02-10 21:07:23 +08:00
zimonianhua 1e85ad88ff fix: 添加mime-support包并注册MIME类型以修复静态文件响应
Docker Build and Push / build (push) Has been cancelled
在Dockerfile中添加mime-support包以确保正确的MIME类型检测,同时在Go代码中显式注册.js、.mjs、.css和.map文件的MIME类型,避免浏览器因Content-Type不正确而拒绝加载静态资源。
2026-02-10 20:57:39 +08:00
zimonianhua 07f4be3fc1 build: 移除Dockerfile中的mailcap依赖并优化前端配置
Docker Build and Push / build (push) Has been cancelled
- 删除Dockerfile中不必要的mailcap包以精简镜像
- 将前端配置从process.env改为import.meta.env以适配现代构建工具
- 移除Go代码中手动设置mime类型的冗余逻辑
- 修复静态资源路由路径格式(/assets改为assets/)
- 优化导入语句格式和代码结构
2026-02-10 20:46:06 +08:00
zimonianhua 39d61dd7ad fix: 修复Docker镜像中静态资源加载问题
Docker Build and Push / build (push) Has been cancelled
- 在Dockerfile中添加mailcap包以提供mime类型支持
- 修正静态资源路由路径从"assets/"改为"/assets"
- 显式注册.js和.css文件的mime类型,防止因缺少mime配置导致浏览器加载失败
2026-02-10 20:31:31 +08:00
zimonianhua fbf7885131 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 镜像
2026-02-10 19:57:51 +08:00
engigu cf77478f3c fix: docker x509 error 2024-01-28 23:26:11 +08:00
engigu ccab125e58 feat: add goreleaser docker image publish 2024-01-28 09:17:26 +08:00
engigu 86ffa87dcc feat: add goreleaser docker image publish 2024-01-27 22:11:27 +08:00
EngiGuandGitHub f2fe5ed3c7 Update Dockerfile 2024-01-01 13:41:32 +08:00
engigu 77af985b76 æ·feat: commplete init process 2023-12-30 17:40:20 +08:00