While deploying containerized React front-end for our applications, my business partner Iskandre and I have discovered that passing environment variables such as a listen address, a port, etc. without rebuilding the entire container is a bit not trivial, but possible.
Here on Iskandre website you can read the article how we did it