mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-05 10:36:52 +08:00
Use venv instead of breaking system packges
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
efe2c21af4
commit
f97076bf49
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
mltbenv/*
|
||||
config.env
|
||||
*.pyc
|
||||
data*
|
||||
|
@ -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 . .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user