Skip to content

Commit 143a7b7

Browse files
Add pip in the step image. (#2866)
* Make the attribute check for XGBoost model compatible with reg:linear * Add pip in the step image. Because we will pip install additional python packages while building runnable image based on step image. * Install python3-dev in the builder stage.
1 parent 45645b6 commit 143a7b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docker/step/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ RUN /bin/bash -c 'if [ "$FIND_FASTED_MIRROR" == "true" ]; then source find_faste
1313
&& echo "Choose the fastest PIP source ..." \
1414
&& choose_fastest_pip_source; fi' && \
1515
apt-get update && \
16-
apt-get -qq install -y --no-install-recommends openjdk-8-jre-headless python3 libmysqlclient20 python3-idna libgomp1 python3-setuptools && \
16+
apt-get -qq install -y --no-install-recommends openjdk-8-jre-headless python3 libmysqlclient20 python3-idna libgomp1 python3-setuptools python3-pip && \
1717
ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
1818
apt-get install -y tzdata > /dev/null && \
1919
dpkg-reconfigure --frontend noninteractive tzdata && \
20-
ln -s /usr/bin/python3 /usr/bin/python
20+
ln -s /usr/bin/python3 /usr/bin/python && \
21+
ln -s /usr/bin/pip3 /usr/bin/pip && \
22+
pip install --upgrade pip
2123

2224
# Build python wheels in sub stage so we can
2325
# keep the outcome and discard the build tool-chain
@@ -28,9 +30,7 @@ WORKDIR /install
2830
ENV PATH="${PATH}:/install/bin"
2931
ENV DEBIAN_FRONTEND=noninteractive
3032
RUN apt-get update && \
31-
apt-get -qq install -y wget unzip build-essential libmysqlclient-dev python3-pip && \
32-
ln -s /usr/bin/pip3 /usr/bin/pip && \
33-
pip install --upgrade pip && \
33+
apt-get -qq install -y wget unzip build-essential libmysqlclient-dev python3-dev && \
3434
wget -q http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/119096/cn_zh/1557995455961/odpscmd_public.zip && \
3535
mkdir -p /install/local/odpscmd && \
3636
unzip -qq odpscmd_public.zip -d /install/local/odpscmd && \

0 commit comments

Comments
 (0)