diff --git a/Dockerfile b/Dockerfile index fdd32d0..b93baf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Groceries.sln b/Groceries.sln index 2716b92..1a959fb 100644 --- a/Groceries.sln +++ b/Groceries.sln @@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .editorconfig = .editorconfig .gitignore = .gitignore Dockerfile = Dockerfile + README.md = README.md EndProjectSection EndProject Global diff --git a/README.md b/README.md index daf55bc..ef1aa9e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The default configuration can be found in `config.ini` once the volume has been Example usage: ```bash -$ docker run -d -p 8080:80 -v ./groceries:/config ghcr.io/jamsch0/groceries +$ docker run -d -p 8080:80 -e LANG=en_GB TZ=Europe/London -v ./groceries:/config ghcr.io/jamsch0/groceries ``` ## Configuration