diff --git a/Kunde.TariffApi/Dockerfile b/Kunde.TariffApi/Dockerfile index b11f3f58..f4a717d9 100644 --- a/Kunde.TariffApi/Dockerfile +++ b/Kunde.TariffApi/Dockerfile @@ -10,6 +10,13 @@ RUN dotnet restore \ --configuration Release FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime LABEL maintainer="elvia@elvia.no" + +# 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 \