This commit is contained in:
Jan-Ole Hübner 2024-08-17 22:31:45 +02:00
parent 1bfd251502
commit 013d2e8ac7
2 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,8 @@ ENV PYTHONIOENCODING=utf-8
ADD . /
RUN printenv > /env
RUN echo "*/2 * * * * /delay_price.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/get_price
RUN chmod 0644 /etc/cron.d/get_price

View file

@ -1,5 +1,5 @@
#!/bin/bash
export PYTHONPATH=/usr/local/lib/python3.12/site-packages
source /env
sleep 2
/usr/local/bin/python3 /get_price.py >> /var/log/cron.log 2>&1
python3 /get_price.py >> /var/log/cron.log 2>&1