i hate my life
This commit is contained in:
parent
7ba82aa509
commit
71a97b6726
3 changed files with 10 additions and 6 deletions
|
@ -11,7 +11,7 @@ ENV PYTHONIOENCODING=utf-8
|
|||
|
||||
ADD . /
|
||||
|
||||
RUN echo "*/15 * * * * python3 /get_price.py >> /var/log/cron.log 2>&1" > /etc/cron.d/get_price
|
||||
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
|
||||
|
||||
|
@ -19,6 +19,6 @@ RUN crontab /etc/cron.d/get_price
|
|||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
RUN chmod 755 /pulse.py /start.sh
|
||||
RUN chmod 755 /pulse.py /get_price.py /start.sh /delay_price.sh
|
||||
|
||||
CMD ["./start.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue