Skip to content

Commit e8d33be

Browse files
author
yi.wu
committed
gpu image dependencies
1 parent 0b4d456 commit e8d33be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

paddle/scripts/docker/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ mkdir -p /paddle/dist/gpu-noavx
1414
# Set BASE_IMAGE and DEB_PATH according to env variables
1515
if [ ${WITH_GPU} == "ON" ]; then
1616
BASE_IMAGE="nvidia/cuda:7.5-cudnn5-runtime-ubuntu14.04"
17+
# additional packages to install when building gpu images
18+
GPU_DOCKER_PKG="python-pip"
1719
if [ ${WITH_AVX} == "ON" ]; then
1820
DEB_PATH="dist/gpu/"
1921
DOCKER_SUFFIX="gpu"
@@ -125,7 +127,7 @@ ENV LANG en_US.UTF-8
125127
126128
RUN ${MIRROR_UPDATE}
127129
apt-get update && \
128-
apt-get install -y libgfortran3 && \
130+
apt-get install -y libgfortran3 ${GPU_DOCKER_PKG} && \
129131
apt-get clean -y && \
130132
pip install --upgrade pip && \
131133
pip install -U 'protobuf==3.1.0' requests

0 commit comments

Comments
 (0)