diff --git a/Dockerfile b/Dockerfile index d3ef484..662c772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ WORKDIR /app # 复制依赖文件并安装 COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - +#RUN --mount=type=cache,target=/root/.cache/pip pip install --no-cache-dir -r requirements.txt +RUN --mount=type=cache,target=/root/.cache/pip pip install --no-warn-script-location --user --default-timeout 90 -r requirements.txt # 复制应用代码 COPY . .