That's actually a good question. The whole idea behind docker (and often containers in general) is that you can run the same container in development as in production.
But if you prefer to keep it separated, we can just remove those. But that means if you want to test ghost, you need to build it completely different than you would build it when deploying to production.