This commit is contained in:
@@ -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 . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user