chore: 修复docker配置问题

This commit is contained in:
ViperEkura 2026-04-04 11:35:14 +08:00
parent e97536758f
commit 073baf105c
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy project files
# Copy project files first for version extraction
COPY astrai/ ./astrai/
COPY pyproject.toml .
# Install dependencies
@ -33,6 +34,7 @@ COPY --from=builder /usr/local/bin /usr/local/bin
# Copy application code
COPY astrai/ ./astrai/
COPY scripts/tools/ ./scripts/tools/
COPY pyproject.toml .
# Create non-root user