File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ if [ ${WITH_GPU} == "ON" ]; then
9
9
GPU_DOCKER_PKG=" python-pip python-dev"
10
10
else
11
11
BASE_IMAGE=" python:2.7.13-slim"
12
+ # FIXME: python base image uses different python version than WITH_GPU
13
+ # need to change PYTHONHOME to /usr/local when using python base image
14
+ CPU_DOCKER_PYTHON_HOME_ENV=" ENV PYTHONHOME /usr/local"
12
15
fi
13
16
14
17
DOCKERFILE_GPU_ENV=" "
@@ -97,7 +100,8 @@ ADD build/*.deb /usr/local/opt/paddle/deb/
97
100
RUN dpkg -i /usr/local/opt/paddle/deb/*.deb && \
98
101
rm -f /usr/local/opt/paddle/deb/*.deb && \
99
102
paddle version
100
- ${DOCKERFILE_CUDNN_DSO}
103
+ ${CPU_DOCKER_PYTHON_HOME_ENV}
104
+ ${DOCKERFILE_CUDNN_DSO}
101
105
${DOCKERFILE_GPU_ENV}
102
106
# default command shows the paddle version and exit
103
107
CMD ["paddle", "version"]
You can’t perform that action at this time.
0 commit comments