Improve project structure

This commit is contained in:
Alex Kotov 2023-01-08 17:17:37 +04:00
parent 8d091120fc
commit 87308db512
No known key found for this signature in database
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 4 additions and 6 deletions

View file

@ -1,9 +1,9 @@
FROM ubuntu:22.10 FROM ubuntu:22.10
RUN mkdir /app RUN mkdir -p /app/mirrortea/
WORKDIR /app WORKDIR /app
RUN apt-get update --yes RUN apt-get update --yes
RUN apt-get install --yes python3 python3-pip RUN apt-get install --yes python3 python3-pip
COPY requirements.txt /app COPY requirements.txt /app/
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
COPY mirrortea /app COPY mirrortea/* /app/mirrortea/
ENTRYPOINT ["/app/mirrortea"] ENTRYPOINT ["/usr/bin/python3", "/app/mirrortea"]

2
mirrortea → mirrortea/__main__.py Executable file → Normal file
View file

@ -1,5 +1,3 @@
#!/usr/bin/env python3
import asyncio import asyncio
import os import os
import sys import sys