Add Dockerfile

This commit is contained in:
Abel Luck 2022-07-22 12:53:34 +00:00
parent 80c6fbd7bb
commit be8d7d6eee
7 changed files with 71 additions and 34 deletions

View file

@ -16,6 +16,7 @@ class BotSettings(BaseSettings):
class Config:
env_prefix = "BOT_"
secrets_dir = "/run/secrets"
case_sensitive = False
@ -101,3 +102,7 @@ def start_dev() -> None:
def start() -> None:
uvicorn.run("ops_bot.main:app", port=1111, host="0.0.0.0") # nosec B104
if __name__ == "__main__":
start()

View file

@ -51,6 +51,7 @@ class MatrixClientSettings(BaseSettings):
class Config:
env_prefix = "MATRIX_"
secrets_dir = "/run/secrets"
case_sensitive = False