build(Dockerfile): adding a ENV on the virtual environment might do it
All checks were successful
/ desec-script (push) Successful in 3m17s

This commit is contained in:
devaine 2026-03-06 12:49:07 -06:00
commit 107f8b8626
Signed by: devaine
GPG key ID: 954B1DCAC6FF84EE
3 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@ RUN apt update && apt install python3.11-venv -y
RUN bash run.bash RUN bash run.bash
RUN source venv/bin/activate ENV PATH="$PWD/venv/bin:$PATH"
CMD ["python3", "main.py"] CMD ["python3", "main.py"]

View file

@ -0,0 +1,2 @@
python-dotenv
requests

View file

@ -9,7 +9,7 @@ fi
if [ ! -d venv ]; then if [ ! -d venv ]; then
python3 -m venv venv python3 -m venv venv
source venv/bin/activate source venv/bin/activate
pip install -U python-dotenv requests pip install -U -r requirements.txt
pip install -U pip # Update pip to the latest version pip install -U pip # Update pip to the latest version
else else
source venv/bin/activate source venv/bin/activate