aaaaaaaaaa
This commit is contained in:
parent
8127f0cb08
commit
ad688fbaa5
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ ENV PYTHONIOENCODING=utf-8
|
|||
ADD . /app
|
||||
|
||||
|
||||
RUN echo "*/2 * * * * /app/delay_price.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/get_price
|
||||
RUN echo -e "SHELL=/bin/bash\n* * * * * root /app/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,6 @@
|
|||
#!/bin/bash
|
||||
source /app/env
|
||||
printenv
|
||||
sleep 2
|
||||
|
||||
python3 /app/get_price.py >> /var/log/cron.log 2>&1
|
Loading…
Add table
Add a link
Reference in a new issue