fix: 修复 Dockerfile 中迁移文件路径错误
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 3m8s
部署后端服务 / 🔄 回滚部署 (push) Failing after 3s

- 更正 pkg/migration/migrations 路径为 pkg/migration
- 解决构建时找不到目录的问题
- 迁移文件直接在 pkg/migration 目录下,无需子目录
This commit is contained in:
iriver
2025-07-14 23:05:50 +08:00
parent 9a578fc67e
commit a548990ace

View File

@ -52,7 +52,7 @@ COPY --from=builder /app/migrate /migrate
# 复制配置文件和脚本 # 复制配置文件和脚本
COPY --from=builder /app/configs /configs COPY --from=builder /app/configs /configs
COPY --from=builder /app/scripts /scripts 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 ENV TZ=Asia/Shanghai