Skip to content

Commit f687821

Browse files
Update pip index URL for installs (#42)
- Added ARG for PIP_INDEX_URL - Updated pip install command to use ARG Co-authored-by: Haihui.Wang <[email protected]>
1 parent dc3535f commit f687821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ RUN if [ "$BUILD_CN" = "true" ]; then \
3434
# install data-flow then
3535
COPY . .
3636

37+
ARG PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple/
3738
# Install deps
38-
# RUN pip install --no-cache-dir --use-deprecated=legacy-resolver -r docker/dataflow_requirements.txt
3939
RUN if [ "$BUILD_CN" = "true" ]; then \
40-
pip install --no-cache-dir -r docker/dataflow_requirements.txt -i https://mirrors.aliyun.com/pypi/simple/; \
40+
pip install --no-cache-dir -r docker/dataflow_requirements.txt -i ${PIP_INDEX_URL}; \
4141
else \
4242
pip install --no-cache-dir -r docker/dataflow_requirements.txt; \
4343
fi

0 commit comments

Comments
 (0)