refactored the dockerfile for a cleaner process