Fixes authorization bug that affects staging and development environments (DDR-2611).
Since staging and development enforce Shibboleth authentication in the web server, environment variables are set for affiliation and isMemberOf regardless of the Rails authentication status. The AuthContext methods did not account for this scenario.
Dockerfile was also fixed to correct errors in setting LD_PRELOAD before the jemalloc object file was actually available.
Edited by David Chandek-Stark