entrypoint.sh (315B)
1#!/bin/sh 2if env | grep -q ^SESSIONID= 3then 4 echo We are in the prod environment 5 export REACT_APP_GUAC_BACKEND_HOSTNAME="wss://${SESSIONID}-8082-guacamole-mashup.${CHALLENGE_DOMAIN}:1337/" 6 export REACT_APP_WIN_SERVER_HOSTNAME=localhost 7else 8 echo Docker Compose deployment 9fi 10 11 12npm run build 13serve -s build