From de983a45abfa7016e74803efc1487d66c719be77 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 13 Feb 2025 13:59:24 +0100 Subject: [PATCH] Install locales --- birdnet-pi/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/Dockerfile b/birdnet-pi/Dockerfile index efdc89581..4207f11d1 100644 --- a/birdnet-pi/Dockerfile +++ b/birdnet-pi/Dockerfile @@ -18,6 +18,8 @@ ARG BUILD_VERSION ARG BUILD_FROM FROM ${BUILD_FROM} +# Install locales +RUN apt-get update && apt-get install -y locales && locale-gen en_US.UTF-8 ENV DEBIAN_FRONTEND="noninteractive" \ BIRDNET_USER="pi" \ USER="pi" \ @@ -27,8 +29,11 @@ ENV DEBIAN_FRONTEND="noninteractive" \ XDG_RUNTIME_DIR="/run/user/1000" \ PYTHON_VIRTUAL_ENV="/home/pi/BirdNET-Pi/birdnet/bin/python3" \ my_dir=/home/pi/BirdNET-Pi/scripts \ - MPLCONFIGDIR="/tmp/.cache/matplotlib" - + MPLCONFIGDIR="/tmp/.cache/matplotlib" \ + LANG en_US.UTF-8 \ + LANGUAGE en_US:en \ + LC_ALL en_US.UTF-8 + # Global LSIO modifications ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" ARG CONFIGLOCATION="/config"