Add Dockerfile and fix deprecated call

This commit is contained in:
Yashar Dabiran 2025-02-12 01:04:27 -05:00
parent ccb9181ac9
commit e3fcfd34c7
2 changed files with 12 additions and 1 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD [ "python", "-u", "./main.py" ]

View file

@ -52,7 +52,8 @@ class BringPlugin:
if __name__ == "__main__": if __name__ == "__main__":
bring_plugin = BringPlugin() bring_plugin = BringPlugin()
loop = asyncio.get_event_loop() loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
while True: while True:
try: try: