NMBFYGTGG
This commit is contained in:
parent
610cdd6a65
commit
043170481a
1 changed files with 0 additions and 11 deletions
11
Dockerfile
11
Dockerfile
|
@ -2,8 +2,6 @@ FROM python:3.12-slim-bookworm
|
|||
WORKDIR /app
|
||||
LABEL MAINTAINER="Jan-Ole Hübner <huebner@jan-ole.de>"
|
||||
|
||||
RUN apt-get update && apt-get install -y cron
|
||||
|
||||
ADD requirements.txt /app
|
||||
RUN pip3 install -r /app/requirements.txt
|
||||
|
||||
|
@ -11,15 +9,6 @@ ENV PYTHONIOENCODING=utf-8
|
|||
|
||||
ADD . /app
|
||||
|
||||
|
||||
RUN echo "SHELL=/bin/bash\nBASH_ENV=/app/env\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
|
||||
|
||||
RUN crontab /etc/cron.d/get_price
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
RUN chmod 755 /app/pulse.py /app/get_price.py /app/start.sh
|
||||
|
||||
CMD ["/app/start.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue