-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathentrypoint.sh
10 lines (10 loc) · 945 Bytes
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
echo "window._env_['GENERATE_SOURCEMAP'] = '$GENERATE_SOURCEMAP';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['SKIP_PREFLIGHT_CHECK'] = '$SKIP_PREFLIGHT_CHECK';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_SURVEY_API_BASE_URL'] = '$REACT_APP_SURVEY_API_BASE_URL';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_SAVING_TIME'] = '$REACT_APP_SAVING_TIME';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_SAVING_STRATEGY'] = '$REACT_APP_SAVING_STRATEGY';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_DEFAULT_SURVEY'] = '$REACT_APP_DEFAULT_SURVEY';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_AUTH_TYPE'] = '$REACT_APP_AUTH_TYPE';" >> /usr/share/nginx/html/env-config.js
echo "window._env_['REACT_APP_VISUALIZE_ENABLED'] = '$REACT_APP_VISUALIZE_ENABLED';" >> /usr/share/nginx/html/env-config.js
exec "$@"