Using the lyft/gunicorn:fdbc8191800c582fbf63a208d84842148d1bde6c image means that gunicorn is stuck on v19.4.5. We need it to be at least 19.8 to enable the reload_extra_files = ['/root/.aws/credentials'] flag (required because this file will change frequently with ephemeral role credentials).
Changes:
Switched to using imagebase image
This imagebase image does not include virtualenv nor does it include /etc/gunicorn/gunicorn.conf so I am adding the installation of virtualenv and also the management of the gunicorn.conf file here (Happy for alternatives for the gunicorn.conf file location)
Using the
lyft/gunicorn:fdbc8191800c582fbf63a208d84842148d1bde6c
image means that gunicorn is stuck on v19.4.5. We need it to be at least 19.8 to enable thereload_extra_files = ['/root/.aws/credentials']
flag (required because this file will change frequently with ephemeral role credentials).Changes: