传输镜像太远,改为目标机build
This commit is contained in:
1 parent
a77b61fb9f
commit
f6ee3cba50
12 files changed
+352
-209
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user