From 3f73695e79b8190602317018dcac8c302fa57ca8 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 22 Jul 2024 22:17:14 +0200 Subject: [PATCH] Dockerfile build should have the locales ready also --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6641b947..c3451552 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,11 +43,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # For presenting price amounts correctly in the restock/price detection overview locales \ # For pdftohtml + locales \ poppler-utils \ zlib1g \ && apt-get clean && rm -rf /var/lib/apt/lists/* - # https://stackoverflow.com/questions/58701233/docker-logs-erroneously-appears-empty-until-container-stops ENV PYTHONUNBUFFERED=1 @@ -67,6 +67,12 @@ COPY changedetectionio /app/changedetectionio # Starting wrapper COPY changedetection.py /app/changedetection.py +# Because we now need to know more about locales due to the price-monitoring being able to format/show different numbers/currencies. +ENV LC_ALL=en_US.UTF-8 +RUN locale-gen en_US.UTF-8 +# Set the locale (optional) +RUN update-locale LC_ALL=en_US.UTF-8 + # Github Action test purpose(test-only.yml). # On production, it is effectively LOGGER_LEVEL=''. ARG LOGGER_LEVEL=''