paddle production docker image default command error
Created by: putcn
I built my own production image with dockerfile from build directory. When I try to run this image, the default command throws error as follows:
[root@k8s-node1 ~]# docker run --rm -it putcn/paddle:pro
/usr/local/bin/paddle: line 158: [: 0.10.0: binary operator expected
File "<stdin>", line 3
if LooseVersion("0.10.0
^
SyntaxError: EOL while scanning string literal
looks like the there are some syntax issues, as well as version detecting issue. and turnd out this line:
INSTALLED_VERSION=`pip freeze 2>/dev/null | grep "^paddle" | sed 's/.*==//g'`
is hitting both paddlepaddle
and paddlepaddle-gpu
, which broke the rest of execution.