已合并
Add docker build argument PIP_EXTRA_ARGS #436
Add docker build argument PIP_EXTRA_ARGS #436
已合并
陈卉创建于 21 天前
3 个文件变更+8-3
@@ -1,6 +1,8 @@
1ARG BASE_IMAGE1ARG BASE_IMAGE
2FROM ${BASE_IMAGE}2FROM ${BASE_IMAGE}
3 3 
4+ARG PIP_EXTRA_ARGS
5+ 
4RUN useradd --create-home --shell /bin/bash app6RUN useradd --create-home --shell /bin/bash app
5 7 
6WORKDIR /app/agent-runtime8WORKDIR /app/agent-runtime
@@ -11,7 +13,7 @@ RUN chown -R app:app /app/agent-runtime
11RUN pip install -e "./foundation" \13RUN pip install -e "./foundation" \
12 -e "./applications/manager/identity_center" \14 -e "./applications/manager/identity_center" \
13 --no-cache-dir \15 --no-cache-dir \
14- -i https://pypi.tuna.tsinghua.edu.cn/simple16+ ${PIP_EXTRA_ARGS}
15 17 
16USER app18USER app
17WORKDIR /app/agent-runtime19WORKDIR /app/agent-runtime
Mdocker/Dockerfile.manager-server+3-1文件内容审核中,请稍后刷新重试
Mdocker/Dockerfile.manager-web+2-1文件内容审核中,请稍后刷新重试