This commit is contained in:
parent
252c2a27e6
commit
433b67a038
@ -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"]
|
||||
ENTRYPOINT ["./app"]
|
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user