diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f26d3a9 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/main.py b/main.py index 29ce1aa..7ba6e93 100644 --- a/main.py +++ b/main.py @@ -52,7 +52,8 @@ class BringPlugin: if __name__ == "__main__": bring_plugin = BringPlugin() - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() + asyncio.set_event_loop(loop) while True: try: