feat: add backend_v1 migration
Some checks failed
build quyun / Build (push) Has been cancelled

This commit is contained in:
2025-12-19 14:46:58 +08:00
parent 218eb4689c
commit 24bd161df9
119 changed files with 12259 additions and 0 deletions

32
backend_v1/Dockerfile.dev Normal file
View File

@@ -0,0 +1,32 @@
# 开发环境 Dockerfile
FROM golang:1.22-alpine AS builder
# 安装必要的工具
RUN apk add --no-cache git ca-certificates tzdata
# 设置工作目录
WORKDIR /app
# 复制 go mod 文件
COPY go.mod go.sum ./
# 设置 Go 代理
RUN go env -w GOPROXY=https://goproxy.cn,direct
# 下载依赖
RUN go mod download
# 复制源代码
COPY . .
# 设置时区
ENV TZ=Asia/Shanghai
# 安装 air 用于热重载
RUN go install github.com/air-verse/air@latest
# 暴露端口
EXPOSE 8080 9090
# 启动命令
CMD ["air", "-c", ".air.toml"]