update the code sample to clean

1. move the docker.list after gpg
2. combine apt-get update & install to avoid error
3. use forloop for plugin download
4. move ENV JENKINS_HOME eariler and use it
5. add ENV JENKINS_MIRROR to short the url and clean