From 6375eb5f223f6dff20091fb84687016f87eae646 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:57:35 +0200 Subject: [PATCH] Update Dockerfile --- zzz_draft_birdnet-pi/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/zzz_draft_birdnet-pi/Dockerfile b/zzz_draft_birdnet-pi/Dockerfile index c6231735d..a340e0168 100644 --- a/zzz_draft_birdnet-pi/Dockerfile +++ b/zzz_draft_birdnet-pi/Dockerfile @@ -21,7 +21,7 @@ FROM ${BUILD_FROM} ENV DEBIAN_FRONTEND noninteractive \ BIRDNET_USER="birdnet" \ USER="birdnet" \ - HOME="/home/$BIRDNET_USER" + HOME="/home/birdnet" # hadolint ignore=DL3015 RUN \ @@ -34,16 +34,17 @@ RUN \ \ # Download installer curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \ - chmod 777 /newinstaller.sh + chmod 777 /newinstaller.sh && \ + \ + # Correct installer + sed -i "/reboot/d" /newinstaller.sh USER birdnet ENV DEBIAN_FRONTEND noninteractive \ BIRDNET_USER="birdnet" \ USER="birdnet" \ - HOME="/home/$BIRDNET_USER" -RUN /usr/bin/env && \ - exit 1 && \ - /./newinstaller.sh + HOME="/home/birdnet" +RUN /./newinstaller.sh USER root #sudo -E -u birdnet -s /bin/bash -c "/newinstaller.sh" # Correct script