fix: use all: prefix for embed to include files starting with underscore
Docker Build and Push / build (push) Has been cancelled

This commit is contained in:
2026-02-10 20:40:35 +08:00
parent 39d61dd7ad
commit 7f9b638553
+2 -2
View File
@@ -20,7 +20,7 @@ import (
) )
var ( var (
//go:embed web/dist/* //go:embed all:web/dist
f embed.FS f embed.FS
//go:embed .release* //go:embed .release*
@@ -31,7 +31,7 @@ func init() {
// 设置 mime 类型,防止 docker 镜像中缺少 mime 类型导致 js 文件加载失败 // 设置 mime 类型,防止 docker 镜像中缺少 mime 类型导致 js 文件加载失败
mime.AddExtensionType(".js", "application/javascript") mime.AddExtensionType(".js", "application/javascript")
mime.AddExtensionType(".css", "text/css") mime.AddExtensionType(".css", "text/css")
constant.InitReleaseInfo(rf) constant.InitReleaseInfo(rf)
setting.Setup() setting.Setup()
logging.Setup() logging.Setup()