Split the build up into multiple stages: 1) Hugo 2) Minfy 3) Serve This means nginx is serving instead of hugo, and there are no random apps installed in the end container.
For reasons.