[docker] Reduce the number of build steps in containers