Update Dockerfile

This commit is contained in:
Alexandre
2024-04-23 22:30:54 +02:00
committed by GitHub
parent b2ad3c5c95
commit 91832f089e

View File

@@ -30,6 +30,13 @@ RUN \
groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet && \
echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
\
if type sudo 2>/dev/null; then \
echo "The sudo command already exists... Skipping."; \
else \
echo "#!/bin/sh\n\${@}" > /usr/sbin/sudo; \
chmod +x /usr/sbin/sudo; \
fi && \
\
# Install app
#curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh -o /newinstaller.sh && \
curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \
@@ -41,13 +48,6 @@ RUN \
cat /newinstaller.sh && \
sudo -u birdnet -s /bin/bash -c "/newinstaller.sh"
RUN if type sudo 2>/dev/null; then \
echo "The sudo command already exists... Skipping."; \
else \
echo -e "#!/bin/sh\n\${@}" > /usr/sbin/sudo; \
chmod +x /usr/sbin/sudo; \
fi
USER birdnet
RUN "/./newinstaller.sh"
USER root