Dockerfile build should have the locales ready also

2486-charset-encoding
dgtlmoon 6 months ago
parent 3e06c1de72
commit 3f73695e79

@ -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=''

Loading…
Cancel
Save