Added log folder in DOckerFIle

This commit is contained in:
hobbyadmin 2024-08-23 17:35:53 +02:00
parent 7576409332
commit 30fb201132

View File

@ -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"]