remove 30 min cron job and simplify dockerfile

This commit is contained in:
jokob-sk
2022-07-23 18:55:31 +10:00
parent 2e9f9f5b59
commit 2f85cf7c29
3 changed files with 3 additions and 6 deletions

View File

@@ -29,8 +29,7 @@ RUN groupadd --gid "${USER_GID}" "${USER}" && \
COPY . /home/pi/pialert
# Pi.Alert
RUN sed -ie "s|TIMEZONE|${TZ}|g" /home/pi/pialert/install/pialert.cron \
&& python /home/pi/pialert/back/pialert.py update_vendors \
RUN python /home/pi/pialert/back/pialert.py update_vendors \
&& sed -ie 's/= 80/= '${PORT}'/g' /etc/lighttpd/lighttpd.conf \
&& (crontab -l 2>/dev/null; cat /home/pi/pialert/install/pialert.cron) | crontab -