Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
# Unhandled exception. System.NotSupportedException: Globalization In…
Browse files Browse the repository at this point in the history
…variant Mode is not supported.

# dotnet/SqlClient#220
RUN apk add icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

as documented
here: https://hafslundnett.atlassian.net/wiki/spaces/ISOA/pages/1834385727/Migrering+til+non-root+docker+images
and here: https://github.com/hafslundnett/idgen/blob/trunk/IdGenerator/Dockerfile
  • Loading branch information
elvia-ejha committed Nov 3, 2020
1 parent 675528e commit 8448448
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Kunde.TariffApi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ RUN dotnet restore \
--configuration Release
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime
LABEL maintainer="[email protected]"

# Workaround
# Unhandled exception. System.NotSupportedException: Globalization Invariant Mode is not supported.
# https://github.com/dotnet/SqlClient/issues/220
RUN apk add icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

ENV ASPNETCORE_URLS=http://*:8080
RUN addgroup application-group --gid 1001 \
&& adduser application-user --uid 1001 \
Expand Down

0 comments on commit 8448448

Please sign in to comment.