Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Culture missing (fr...) for ASP.NET Core Runtime 3.1 #3854

Closed
using-system opened this issue Jun 16, 2022 · 5 comments
Closed

Culture missing (fr...) for ASP.NET Core Runtime 3.1 #3854

using-system opened this issue Jun 16, 2022 · 5 comments

Comments

@using-system
Copy link

using-system commented Jun 16, 2022

Describe the Bug

CultureInfo.GetCultures(CultureTypes.AllCultures) return only EN culture since the last build.

Steps to Reproduce

# build runtime image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine

Then in .net code --> CultureInfo.GetCultures(CultureTypes.AllCultures) returns only en cultures.

It's working with the previous image (mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine@sha256:1fd90b0b0b640f598a77dad2e4c51b101c59c9994b4c2ee92189911eab2fb3f2)

@mthalman
Copy link
Member

Duplicate of #3844

This has just been republished with the fix within the past hour. If you pull the 3.1-alpine tag, it should resolve your issue.

@mthalman mthalman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2022
@mthalman mthalman reopened this Jun 16, 2022
@mthalman
Copy link
Member

Oh, sorry, that's for sdk images only. I see you're using the aspnet image. Can you show your whole Dockerfile?

@using-system
Copy link
Author

using-system commented Jun 16, 2022

# Generate runtime image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine

RUN apk add --no-cache icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ENV DOTNET_RUNNING_IN_CONTAINER=true




LABEL company="***"

WORKDIR /app
EXPOSE 8080/tcp
COPY --from=build /app/out .

ENTRYPOINT [ "dotnet", "***.dll" ]

@mthalman
Copy link
Member

mthalman commented Jun 16, 2022

Right, so your problem is this line:

RUN apk add --no-cache icu-libs

You can read through #3844 for context. But since the 3.1-alpine tag has been moved to Alpine 3.16, you're now affected by the ICU data split. To resolve this, you'll need to also install the icu-data-full package in addition to icu-libs:

RUN apk add --no-cache icu-data-full icu-libs

@using-system
Copy link
Author

This solved
Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants