From a548990ace10537397e1866b239e8ee44d9d57c0 Mon Sep 17 00:00:00 2001 From: iriver Date: Mon, 14 Jul 2025 23:05:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Dockerfile=20?= =?UTF-8?q?=E4=B8=AD=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更正 pkg/migration/migrations 路径为 pkg/migration - 解决构建时找不到目录的问题 - 迁移文件直接在 pkg/migration 目录下,无需子目录 --- backend/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7947a22..eca6f44 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -52,7 +52,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/migrations /pkg/migration/migrations +COPY --from=builder /app/pkg/migration /pkg/migration # 设置时区 ENV TZ=Asia/Shanghai