改用API驗證

This commit is contained in:
beabigegg
2025-10-02 17:13:24 +08:00
parent 0a89c19fc9
commit adecdf0cce
48 changed files with 6136 additions and 1239 deletions

View File

@@ -39,11 +39,24 @@ RUN apt-get update && apt-get install -y \
gcc \
g++ \
curl \
libffi-dev \
libssl-dev \
python3-dev \
pkg-config \
libcairo2-dev \
libpango1.0-dev \
libgdk-pixbuf-2.0-dev \
shared-mime-info \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Upgrade pip and install wheel
RUN pip install --upgrade pip setuptools wheel
# Install dependencies with better error handling
RUN pip install --no-cache-dir -r requirements.txt --timeout 300
# Copy application code
COPY app/ ./app/
@@ -52,6 +65,7 @@ COPY *.py ./
# Copy configuration files
COPY .env ./
COPY api.txt ./
COPY migrations/ ./migrations/
# Copy batch scripts (for reference)
COPY *.bat ./scripts/