Docker has a great new feature in 17.05 called Multi-Stage builds. This post shows a practical example for it using complex Single Page Applications