已合并
Add docker build argument PIP_EXTRA_ARGS #436
陈卉创建于 21 天前
Add docker build argument PIP_EXTRA_ARGS #436
已合并
共 3 个文件变更+8-3
| @@ -1,6 +1,8 @@ | |||
| 1 | ARG BASE_IMAGE | 1 | ARG BASE_IMAGE |
| 2 | FROM ${BASE_IMAGE} | 2 | FROM ${BASE_IMAGE} |
| 3 | 3 | ||
| 4 | +ARG PIP_EXTRA_ARGS | ||
| 5 | + | ||
| 4 | RUN useradd --create-home --shell /bin/bash app | 6 | RUN useradd --create-home --shell /bin/bash app |
| 5 | 7 | ||
| 6 | WORKDIR /app/agent-runtime | 8 | WORKDIR /app/agent-runtime |
| @@ -11,7 +13,7 @@ RUN chown -R app:app /app/agent-runtime | |||
| 11 | RUN pip install -e "./foundation" \ | 13 | RUN 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/simple | 16 | + ${PIP_EXTRA_ARGS} |
| 15 | 17 | ||
| 16 | USER app | 18 | USER app |
| 17 | WORKDIR /app/agent-runtime | 19 | WORKDIR /app/agent-runtime |