Improve project structure
This commit is contained in:
parent
8d091120fc
commit
87308db512
|
@ -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
2
mirrortea → mirrortea/__main__.py
Executable file → Normal file
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
Reference in a new issue