Add support for setting locale and timezone to docker image

This commit is contained in:
2023-08-04 19:37:24 +01:00
parent 06b2de9311
commit 6d932b2c84
3 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,9 @@ FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine AS base
WORKDIR /groceries
COPY --from=build /out .
COPY --from=build /src/Groceries/config.ini /config/
VOLUME /config
RUN apk add --no-cache icu-libs tzdata
ENV DOTNET_ENABLEDIAGNOSTICS=0
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
EXPOSE 80
VOLUME /config
ENTRYPOINT ["./Groceries", "--data", "/config"]