From 433b67a038f981a4996a186dc5ac1715f9528957 Mon Sep 17 00:00:00 2001 From: coward Date: Wed, 8 May 2024 15:51:19 +0800 Subject: [PATCH] :bug: --- Dockerfile | 4 ++-- initialize/init.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1800ae5..dd4e5ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,11 +16,11 @@ RUN ls -lh && chmod +x ./app FROM alpine WORKDIR /app -WORKDIR db +RUN mkdir -p db COPY --from=build /build/app /app COPY --from=build /build/template/* /app/template/ RUN ls -al /app/ | grep 'app' -ENTRYPOINT ["/app/app"] \ No newline at end of file +ENTRYPOINT ["./app"] \ No newline at end of file diff --git a/initialize/init.go b/initialize/init.go index f44245d..c29ef4e 100644 --- a/initialize/init.go +++ b/initialize/init.go @@ -33,7 +33,7 @@ func Init() { // initConfig // @description: 初始化配置 func initConfig() { - configBytes, err := os.ReadFile("./config/app.yaml") + configBytes, err := os.ReadFile("./app.yaml") if err != nil { log.Panicf("读取配置文件失败: %v", err.Error()) }