small fixed but now it's ready

This commit is contained in:
Macleykun
2022-06-18 14:09:48 +02:00
parent ae24dd37b8
commit 587c18c66a

View File

@@ -9,6 +9,7 @@ RUN apt-get update \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /home/pi/pialert/install/index.html /var/www/html/index.html \
&& ln -s /home/pi/pialert/front /var/www/html/pialert \
&& lighttpd-enable-mod fastcgi-php
# Redirect for lighthttpd to work properly
@@ -16,14 +17,9 @@ COPY . /home/pi/pialert
# Pi.Alert | also we probably should/can delete the tar from the repo and remove this line
RUN rm -r /home/pi/pialert/tar \
&& ln -s /home/pi/pialert/front /var/www/html/pialert \
&& python /home/pi/pialert/back/pialert.py update_vendors \
&& (crontab -l 2>/dev/null; cat /home/pi/pialert/install/pialert.cron) | crontab -
EXPOSE 80/tcp
VOLUME /home/pi/pialert/db
# https://github.com/rtsp/docker-lighttpd/blob/main/Dockerfile
# Todo, refacto CMD so that we can run lighttpd and make it respond instant
# The above Dockerfile is doing this well, but i don't see why it isn't working for us