Cannot Make Ray Server Ports Visible in Docker

I can run the server if I add --host 0.0.0.0 to the run command and access the server from the host machine at http://0.0.0.0:8000/.

CMD ["serve", "run", "server:app", "--host", "0.0.0.0"]

I still can’t see the Ray dashboard. This seems to be the same issue discussed in Ray Dashboard cannot be accessed in the host browser.