Added back expose and sed

This commit is contained in:
Macley
2022-06-20 08:47:27 +02:00
committed by GitHub
parent 8288336287
commit 1844d1f524

View File

@@ -18,11 +18,14 @@ 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 \
&& python /home/pi/pialert/back/pialert.py update_vendors \
&& sed -ie 's/= 80/= 20211/g' /etc/lighttpd/lighttpd.conf \
&& (crontab -l 2>/dev/null; cat /home/pi/pialert/install/pialert.cron) | crontab -
EXPOSE 20211
# https://github.com/rtsp/docker-lighttpd/blob/main/Dockerfile
# > this one maybe better? https://hub.docker.com/r/jitesoft/lighttpd
# 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
CMD ["/home/pi/pialert/dockerfiles/start.sh"]
CMD ["/home/pi/pialert/dockerfiles/start.sh"]