mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -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 #
|
||||||
|
|||||||
Reference in New Issue
Block a user