I am trying to run a container on my image.
The container run command I am using is:
docker run -e REACT_APP_BACKEND_WEBSERVICE="http://webservice-backend:8080" -p 3000:3000 username/webservicename
Then in my react code, I am trying to access it at the runtime using
console.log(process.env.REACT_APP_BACKEND_WEBSERVICE);
But in my console it is printing undefined.
I dont want to pass the env variable from the dockerfile itself.