fix: use all: prefix for embed to include files starting with underscore
Docker Build and Push / build (push) Has been cancelled
Docker Build and Push / build (push) Has been cancelled
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed web/dist/*
|
||||
//go:embed all:web/dist
|
||||
f embed.FS
|
||||
|
||||
//go:embed .release*
|
||||
@@ -31,7 +31,7 @@ func init() {
|
||||
// 设置 mime 类型,防止 docker 镜像中缺少 mime 类型导致 js 文件加载失败
|
||||
mime.AddExtensionType(".js", "application/javascript")
|
||||
mime.AddExtensionType(".css", "text/css")
|
||||
|
||||
|
||||
constant.InitReleaseInfo(rf)
|
||||
setting.Setup()
|
||||
logging.Setup()
|
||||
|
||||
Reference in New Issue
Block a user