Update Dockerfile

This commit is contained in:
Alexandre
2024-04-23 13:06:55 +02:00
committed by GitHub
parent 0a8d79af79
commit d4af170324

View File

@@ -20,15 +20,18 @@ FROM ${BUILD_FROM}
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ENV HOME="/config" ENV HOME="/root"
# Install dependencies RUN \
RUN apt-get update -y && apt-get install gcc python3-dev -y # Install dependencies
apt-get update -y && apt-get install gcc python3-dev sudo -y && \
# Install app \
RUN curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \ # Create user
chmod +x /newinstaller.sh && \ groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet
sed -i "/sudo reboot/d" /newinstaller.sh && \ \
/./newinstaller.sh # Install app
curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \
chmod 777 /newinstaller.sh && \
sudo -u birdnet -s /bin/bash -c "/newinstaller.sh"
################## ##################
# 2 Modify Image # # 2 Modify Image #