dockerfile添加CDN配置参数

pull/39/head
Minho 2017-05-15 16:19:59 +08:00
parent 0d4c805fb7
commit fc6ec31b31
1 changed files with 13 additions and 1 deletions

View File

@ -31,6 +31,18 @@ if [ ! -z $HTTP_PORT] ; then
sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
fi fi
if [ ! -z $CDNJS ]; then
sed -i 's/^cdnjs.*/cdnjs='$CDNJS'/g' conf/app.conf
fi
if [ ! -z $CDNCSS ]; then
sed -i 's/^cdncss.*/cdncss='$CDNCSS'/g' conf/app.conf
fi
if [ ! -z $CDN ]; then
sed -i 's/^cdn.*/cdnjs='$CDN'/g' conf/app.conf
fi
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
/go/src/github.com/lifei6671/godoc/godoc_linux_amd64 install /go/src/github.com/lifei6671/godoc/godoc_linux_amd64 install