Added log folder in DOckerFIle
This commit is contained in:
parent
7576409332
commit
30fb201132
|
|
@ -17,10 +17,15 @@ WORKDIR /app
|
|||
COPY src/reportMissingThekendienst.py reportMissingThekendienst.py
|
||||
COPY cfg/base_config.json base_config.json
|
||||
COPY cfg/check_next_7_days.json check_next_7_days.json
|
||||
RUN mkdir log
|
||||
RUN touch thekendienstbot_week.txt
|
||||
RUN touch thekendienstbot_2days.txt
|
||||
|
||||
|
||||
# Setup cron to run
|
||||
COPY ./docker/crontab /etc/cron.d/crontab
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
CMD ["cron", "-f"]
|
||||
#CMD ["cron", "-f"]
|
||||
CMD ["cron", "-f", "&&", "tail", "-f", "/var/log/syslog"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user