From bbc889bcac67fbfed4f0232c52a5a82be8a510ed Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 8 Jan 2023 00:11:46 +0400 Subject: [PATCH] Add an executable --- Dockerfile | 2 ++ mirrortea | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100755 mirrortea diff --git a/Dockerfile b/Dockerfile index 0128ce2..662b6ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,3 +5,5 @@ RUN apt-get update --yes RUN apt-get install --yes python3 python3-pip COPY requirements.txt /app RUN pip3 install -r requirements.txt +COPY mirrortea /app +ENTRYPOINT ["/app/mirrortea"] diff --git a/mirrortea b/mirrortea new file mode 100755 index 0000000..9c2fe2d --- /dev/null +++ b/mirrortea @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +import asyncio +from nio import AsyncClient + +async def main(): + print(123) + +if __name__ == '__main__': + asyncio.get_event_loop().run_until_complete(main())