feat: Add team registration executable and API for auto-registration.

This commit is contained in:
2026-02-01 07:06:51 +08:00
parent d7cfa00349
commit d4fb35b143
3 changed files with 9 additions and 18 deletions

View File

@@ -88,8 +88,13 @@ WORKDIR /app
# Copy binary from builder
COPY --from=backend-builder /app/codex-pool /app/codex-pool
# Copy team-reg executable (if exists) - for auto-registration feature
# 注意: 需要提供 Linux 版本的 team-reg 可执行文件
COPY backend/team-reg* /app/
# Create data directory
RUN mkdir -p /app/data
RUN mkdir -p /app/data && \
chmod +x /app/team-reg* 2>/dev/null || true
# Expose port
EXPOSE 8848
@@ -100,3 +105,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
# Run the application
ENTRYPOINT ["/app/codex-pool"]