传输镜像太远,改为目标机build

This commit is contained in:
sophie committed 2026-04-27 17:08:11 +08:00
1 parent a77b61fb9f
commit f6ee3cba50
12 files changed
+352 -209

No files matched your search

-7
View File
@@ -2,13 +2,6 @@ FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
# libpq-dev is required for psycopg2
RUN apt-get update && apt-get install -y \
gcc \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt