From 98ae048c8614936cfc06e96ece0ec19091bf1e16 Mon Sep 17 00:00:00 2001 From: Fedor Borshev <1592663+f213@users.noreply.github.com> Date: Wed, 17 Dec 2025 15:15:55 +0300 Subject: [PATCH] Fixed reading utf-8 from files --- {{ cookiecutter.name }}/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/{{ cookiecutter.name }}/Dockerfile b/{{ cookiecutter.name }}/Dockerfile index 54c91791..ffe344f9 100644 --- a/{{ cookiecutter.name }}/Dockerfile +++ b/{{ cookiecutter.name }}/Dockerfile @@ -36,7 +36,10 @@ FROM python:${PYTHON_VERSION}-slim-bookworm AS base LABEL maintainer="{{ cookiecutter.email }}" ENV DEBIAN_FRONTEND=noninteractive +ENV PYTHONUTF8=1 ENV PYTHONUNBUFFERED=1 +ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 + ENV STATIC_ROOT=/code/static # Define user ids to ensure consistent permissions, e.g., for mounted volumes ENV UID=999 GID=999