If you are using .Net Alpine image then this issue can be solved by adding these lines in your docker file (as suggested by Microsoft)
ENV \
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
RUN apk add --no-cache \
icu-data-full \
icu-libs
You can find more information here
https://github.com/dotnet/dotnet-docker/blob/main/samples/enable-globalization.md
https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/Dockerfile.alpine-icu