From fb2aba80089ef4f1dcc43892e100e416d246e5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 25 Feb 2026 08:55:05 +0100 Subject: [PATCH] fix: move environment configuration after package install Before that the locales are not available what pollutes the build log with warnings. --- Dockerfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9966d97..043e7b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,17 +39,6 @@ RUN \ && install -d -o weblate -g weblate -m 755 /opt/python \ && install -d -o weblate -g weblate -m 755 /app/cache -# Configure utf-8 locales to make sure Python -# correctly handles unicode filenames, configure settings -ENV LANG=en_US.UTF-8 -ENV LC_ALL=en_US.UTF-8 -# Home directory -ENV HOME=/home/weblate -# Avoid Python buffering stdout and delaying logs -ENV PYTHONUNBUFFERED=1 -# Add virtualenv to path -ENV PATH=/app/venv/bin:/usr/local/bin:/usr/bin:/bin - # Install dependencies # hadolint ignore=DL3008,DL3013,SC2046,DL3003 RUN \ @@ -94,6 +83,17 @@ RUN \ && apt-get clean \ && rm -rf /root/.cache /tmp/* /var/lib/apt/lists/* /run/* +# Configure utf-8 locales to make sure Python +# correctly handles unicode filenames, configure settings +ENV LANG=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 +# Home directory +ENV HOME=/home/weblate +# Avoid Python buffering stdout and delaying logs +ENV PYTHONUNBUFFERED=1 +# Add virtualenv to path +ENV PATH=/app/venv/bin:/usr/local/bin:/usr/bin:/bin + # Install uv RUN curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | env UV_UNMANAGED_INSTALL="/usr/local/bin" sh