mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-05 07:14:08 +02:00
Update Dockerfile
This commit is contained in:
@@ -33,6 +33,7 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
|
|||||||
ARG CONFIGLOCATION="/config"
|
ARG CONFIGLOCATION="/config"
|
||||||
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh
|
||||||
|
|
||||||
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
# hadolint ignore=DL3015,SC2016
|
# hadolint ignore=DL3015,SC2016
|
||||||
RUN \
|
RUN \
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@@ -100,8 +101,8 @@ RUN \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Update with my repo if more recent
|
# Update with my repo if more recent
|
||||||
|
WORKDIR /home/pi
|
||||||
RUN \
|
RUN \
|
||||||
cd "$HOME" && \
|
|
||||||
git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
|
git clone https://github.com/alexbelgium/BirdNET-Pi BirdNET-additions && \
|
||||||
date1="$(cd BirdNET-Pi && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d)" && \
|
date1="$(cd BirdNET-Pi && git show -s --format=%ct HEAD | xargs -I{} date -d @{} +%Y-%m-%d)" && \
|
||||||
timestamp1=$(date -d "$date1" +%s) && \
|
timestamp1=$(date -d "$date1" +%s) && \
|
||||||
@@ -110,8 +111,8 @@ RUN \
|
|||||||
if [ $timestamp2 -gt $timestamp1 ]; then \
|
if [ $timestamp2 -gt $timestamp1 ]; then \
|
||||||
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
cp -Rf BirdNET-additions/* BirdNET-Pi/ && \
|
||||||
rm -r BirdNET-additions && \
|
rm -r BirdNET-additions && \
|
||||||
sed -i "/find /d" BirdNET-Pi/scripts/*snippets* && \
|
sed -i "/find /d" BirdNET-Pi/scripts/update_birdnet_snippets.sh && \
|
||||||
./BirdNET-Pi/scripts/*snippets*; fi
|
./BirdNET-Pi/scripts/update_birdnet_snippets.sh; fi
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 2 Modify Image #
|
# 2 Modify Image #
|
||||||
|
|||||||
Reference in New Issue
Block a user