改用API驗證
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -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/
|
||||
|
Reference in New Issue
Block a user