1. 16 Mar, 2026 1 commit
    • shaw's avatar
      fix(docker): resolve /app/data permission denied on volume mounts · aa5846b2
      shaw authored
      Docker named volumes and host bind-mounts may be owned by root,
      causing "open data/model_pricing.sha256: permission denied" when
      the container runs as the non-root sub2api user.
      
      Add an entrypoint script that fixes /app/data ownership before
      dropping to sub2api via su-exec. Replace USER directive with the
      entrypoint approach across all three Dockerfiles and update both
      GoReleaser configs to include the script in Docker build contexts.
      aa5846b2
  2. 15 Mar, 2026 1 commit
    • IanShaw027's avatar
      fix: 在 Dockerfile.goreleaser 中添加 pg_dump 和 psql 工具 #1002 · 6fba4ebb
      IanShaw027 authored
      为了支持容器内的数据库备份和恢复功能,在运行时镜像中添加 PostgreSQL 客户端工具。
      
      变更内容:
      - 使用多阶段构建从 postgres:18-alpine 镜像复制 pg_dump 和 psql 二进制文件
      - 添加必要的依赖库(libpq, zstd-libs, lz4-libs, krb5-libs, libldap, libedit)
      - 升级基础镜像到 alpine:3.21
      - 复制 libpq.so.5 共享库以确保工具正常运行
      
      这样可以在运行时容器中直接执行数据库备份和恢复操作,无需访问 Docker socket。
      6fba4ebb
  3. 25 Dec, 2025 1 commit