From 8caf2a8ba78f5cec2b9f63ab48847d29a5e938fe Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:57:46 +0200 Subject: [PATCH] Update Dockerfile --- zzz_draft_birdnet-pi/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index 9423a696f..d274f4ea3 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -23,19 +23,16 @@ ENV DEBIAN_FRONTEND="noninteractive" \ USER="abc" \ PUID=1000 \ PGID=1000 \ - HOME="/app" + HOME="/home/abc" # hadolint ignore=DL3015 RUN \ # Install dependencies apt-get update -y && apt-get install gcc python3-dev git jq sudo -y && \ \ - # Scripts expect to see a home in /home - mkdir -p /home/abc && \ - ln -s /home/abc /app && \ # Ensure permissions + mkdir -p /home/abc && \ chown -R abc:abc /home/abc && \ - chown -R abc:abc /app && \ echo "abc ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ \ # Download installer @@ -52,8 +49,11 @@ RUN \ # Remove all instances of sudo from all other scripts sed -i '1a for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do \sed -i "s|sudo ||" "$file"; done' /newinstaller.sh && \ \ - /./newinstaller.sh - + /./newinstaller.sh && \ + \ + # Adapt for lsio + ln -s /home/abc /app && \ + chown -R /home/abc /app #USER abc #WORKDIR /app