fix: mount config directory instead of file for Docker Compose
Build and Push to GHCR / build-and-push (push) Has been cancelled

- Add CONFIG_PATH env support to avoid Docker creating config.json as a directory
- Config Save() now auto-creates parent directories
- Update docker-compose.yml to mount ./config:/app/config
- Update README deployment docs accordingly
This commit is contained in:
Agent
2026-05-24 15:44:29 +08:00
parent 45da2d1d0c
commit 44c8ff6a6f
6 changed files with 42 additions and 14 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ RUN apk --no-cache add ca-certificates
WORKDIR /app
# 创建必要目录
RUN mkdir -p web/static cache
RUN mkdir -p web/static cache config
# 复制编译后的二进制文件和静态资源
COPY --from=builder /app/mirror-proxy .