diff --git a/.gitignore b/.gitignore index 58c59c3efe7..0b037971c10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +mltbenv/* config.env *.pyc data* diff --git a/Dockerfile b/Dockerfile index b3cad464e84..1e757c6bb36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ FROM anasty17/mltb:latest WORKDIR /usr/src/app RUN chmod 777 /usr/src/app +RUN python3 -m venv mltbenv + COPY requirements.txt . -RUN pip3 install --no-cache-dir -r requirements.txt --break-system-packages +RUN mltbenv/bin/pip install --no-cache-dir -r requirements.txt COPY . . diff --git a/start.sh b/start.sh index 9b2bf653cbe..50bd8615769 100644 --- a/start.sh +++ b/start.sh @@ -1 +1,3 @@ -python3 update.py && python3 -m bot +source mltbenv/bin/activate +python3 update.py +python3 -m bot