Restructure Dockerfile to adhere to Docker best practices.