make marine-nginx container utilise cache more during build stage by moving the usual suspect (command) for invalidating the cache at the end