Optimizing dockerfile