Refactoring for centos and configure Dockerfile