build(Dockerfile): adding a ENV on the virtual environment might do it
All checks were successful
/ desec-script (push) Successful in 3m17s
All checks were successful
/ desec-script (push) Successful in 3m17s
This commit is contained in:
parent
e28928619d
commit
107f8b8626
3 changed files with 4 additions and 2 deletions
|
|
@ -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"]
|
||||||
|
|
||||||
|
|
|
||||||
2
server-scripts/desec-ip-sync/requirements.txt
Normal file
2
server-scripts/desec-ip-sync/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
python-dotenv
|
||||||
|
requests
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue