From f0f191c10ee01ac639887239b80d943798a59536 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sat, 27 Apr 2024 18:23:50 +0200 Subject: [PATCH] Journalctl --- birdnet-pi/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index 1e08a9d8c..c8f5f8f79 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -31,11 +31,13 @@ ENV DEBIAN_FRONTEND="noninteractive" \ RUN \ # Install dependencies echo "Install dependencies" && \ - apt-get update -y && apt-get install curl gcc python3-dev git jq sudo php-mbstring -y && \ + apt-get update -y && apt-get install curl gcc python3-dev git jq sudo php-mbstring procps -y && \ \ # Correct for systemctl curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl && \ chmod a+x /bin/systemctl && \ + curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/journalctl3.py -o /bin/journalctl && \ + chmod a+x /bin/journalctl && \ \ # Change user to pi and create /home/pi echo "setting users" && \ @@ -83,7 +85,11 @@ RUN \ # Adapt for lsio usage of /app if [ -d /app ]; then rm -r /app; fi && \ ln -s /home/pi /app && \ - chown -R 1000:1000 /home/pi /app + chown -R 1000:1000 /home/pi /app && \ + \ + # Cleanup + apt-get clean all && \ + rm -rf /var/lib/apt/lists/* ################## # 2 Modify Image #