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