Add Dockerfile
This commit is contained in:
parent
80c6fbd7bb
commit
be8d7d6eee
7 changed files with 71 additions and 34 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue