Improve Dockerfile

- Do not use python:X.Y images, they contain *a lot* of
  unnecessary and potentially vulnerable software
- Prepare for a much slimmer image build
This commit is contained in:
Jonas Schäfer
2021-01-17 12:18:45 +01:00
parent fce7b9a637
commit 3f44cf5a1f
2 changed files with 36 additions and 23 deletions

View File

@@ -26,8 +26,7 @@ except KeyError:
'To avoid losing sessions on each server restart, please provide '
'a SECRET_KEY.',
file=sys.stderr)
SECRET_KEY = os.environ.get('SECRET_KEY', secrets.token_urlsafe(nbytes=32))
SECRET_KEY = secrets.token_urlsafe(nbytes=32)
# URL (without trailing /) of the prosody HTTP server.
#