What you shared is a Dockerfile to build/create an image.
Like I already wrote you can override the entrypoint script for a new container. Please check the docs on how to apply it to the way you start your container (which you still didn’t share:)
With docker run (search for --entrypoint on the page):
https://docs.docker.com/reference/cli/docker/container/run/
Within a compose file:
https://docs.docker.com/compose/compose-file/05-services/#entrypoint