Reducing Strapi Docker Image Size

To me it is confusing that in production (after running the build command) you still need the src folder present. Why is this? is it possible to somehow only serve the static files in the build folder? If not what is the purpose of this build folder?