diff --git a/Dockerfile b/Dockerfile index b04c04a..c16476f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,9 @@ WORKDIR /root/ # 从构建阶段复制可执行文件 COPY --from=builder /app/app . # 在容器目录 /root/ 创建一个目录 为config -RUN mkdir conf . -COPY --from=builder /app/conf/ ./conf/ -COPY --from=builder /app/templates/ ./templates/ +RUN mkdir config . +COPY --from=builder /app/config/ ./config/ +COPY --from=builder /app/web/ ./web/ # 暴露端口 EXPOSE 8910 diff --git a/main.go b/main.go index 4fb5ddc..fe9f35e 100644 --- a/main.go +++ b/main.go @@ -81,9 +81,6 @@ func main() { sessions.Sessions("blog-session", store), ) - // 7. 设置模板路径 - //router.HTMLRender = createTemplateRenderer(cfg.Theme.Current) - // 8. 注册路由 routers.RegisterRoutes(router)