- 修复配置文件路径错误:etc/photographyapi-api.yaml -> etc/photography-api.yaml - 修复Dockerfile未包含配置文件的问题 - 确保后端服务容器能正确加载配置文件 修复了容器启动时报'config file etc/photographyapi-api.yaml: no such file or directory'的错误
This commit is contained in:
@ -53,6 +53,7 @@ COPY --from=builder /app/migrate /migrate
|
||||
COPY --from=builder /app/configs /configs
|
||||
COPY --from=builder /app/scripts /scripts
|
||||
COPY --from=builder /app/pkg/migration /pkg/migration
|
||||
COPY --from=builder /app/etc /etc
|
||||
|
||||
# 设置时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
)
|
||||
|
||||
var configFile = flag.String("f", "etc/photographyapi-api.yaml", "the config file")
|
||||
var configFile = flag.String("f", "etc/photography-api.yaml", "the config file")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
Reference in New Issue
Block a user