1
0
Fork 0

Add an executable

This commit is contained in:
Alex Kotov 2023-01-08 00:11:46 +04:00
parent 2f7e43b461
commit bbc889bcac
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 12 additions and 0 deletions

View file

@ -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"]

10
mirrortea Executable file
View file

@ -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())