refactoring dockerfile controller
refactored dockerfile controller