Update Dockerfile

This commit is contained in:
Alexandre
2024-04-24 16:59:50 +02:00
committed by GitHub
parent 0a23acf0c5
commit ba76a0db57

View File

@@ -20,9 +20,10 @@ FROM ${BUILD_FROM}
ENV DEBIAN_FRONTEND="Noninteractive" \ ENV DEBIAN_FRONTEND="Noninteractive" \
BIRDNET_USER="abc" \ BIRDNET_USER="abc" \
USER="abc" USER="abc" \
#\ PUID=1000 \
#HOME="/home/abc" PGID=1000 \
HOME="/app"
# hadolint ignore=DL3015 # hadolint ignore=DL3015
RUN \ RUN \
@@ -32,6 +33,8 @@ RUN \
# Create user and allow sudo # Create user and allow sudo
#groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet && \ #groupadd --gid 1000 birdnet && useradd --uid 1000 --gid birdnet --shell /bin/bash --create-home birdnet && \
#echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ #echo "birdnet ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
mkdir -p /app && \
chown 1000:1000 /app && \
echo "abc ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \ echo "abc ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
\ \
# Download installer # Download installer
@@ -48,7 +51,7 @@ USER abc
RUN export DEBIAN_FRONTEND noninteractive && \ RUN export DEBIAN_FRONTEND noninteractive && \
export BIRDNET_USER="abc" && \ export BIRDNET_USER="abc" && \
export USER="abc" && \ export USER="abc" && \
#export HOME="/home/abc" && \ export HOME="/app" && \
echo "HOME is $HOME" && \ echo "HOME is $HOME" && \
/./newinstaller.sh /./newinstaller.sh
USER root USER root