How modify the default .public folder path for media library uploads.

We have deployed our project using Docker & Kubernetes. when we try upload image/ Document files in assets it shows correctly but if rebuild or on next day it shows broken images.
Is there any way to modify the default .public folder path for media library uploads or if any other solution please suggest.
We found some options like AWS S-3 or FTP but we are not using it.

System Information
  • Strapi Version: 4.9
  • Operating System: MS OS
  • Database: Postgres
  • Node Version:
  • NPM Version:
  • Yarn Version: