aaaaaah
This commit is contained in:
parent
1bfd251502
commit
013d2e8ac7
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue