Flatten run commands to reduce number of layers.
Flatten api_generator dockerfile RUN commands.