Add support for setting locale and timezone to docker image
This commit is contained in:
parent
06b2de9311
commit
6d932b2c84
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user