Create YB DB and Schemas via a Script file

And when I have the entrypoint that way mentioned above, I am getting this error

ysqlsh: could not connect to server: Connection refused
Is the server running on host “localhost” (127.0.0.1) and accepting
could not connect to server: Cannot assign requested address
Is the server running on host “localhost” (::1) and accepting
TCP/IP connections on port 5433?

I even tried EXPOSE 7000 9000 5433 9042 on my dockerfile. no luck

@dorian_yugabyte