Using environment variables in rasa-production and rasa-worker Docker

I also tried using a entrypoint.sh. This seems to work partially, but when logging into the Rasa x console (and uploading a model), the conversation tab on rasa x stays white and I cannot interact with the model.

Dockerfile

FROM rasa/rasa:1.10.12-full

COPY entrypoint.sh entrypoint.sh
 
ENTRYPOINT ["bash"]
CMD ["entrypoint.sh"]

entrypoint.sh

rasa x --no-prompt --production --config-endpoint ${RASA_X_HOST}/api/config?token=${RASA_X_TOKEN} --port ${PORT} --jwt-method HS256 --jwt-secret ${JWT_SECRET} --auth-token '${RASA_TOKEN}' --cors \"*\" --debug