fix(router): use docker cache and avoid potential problems in cp.