Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions docker/turnierplan-amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ RUN dotnet publish "./Turnierplan.App.csproj" -c Release --runtime linux-x64 -o
FROM base AS final

# Install some packages:
# - 'gcompat' to run QuestPDF dependencies on Alpine Linux
# - 'krb5-libs' to enable Npgsql GSS session encryption
# - 'tzdata' contains relevant time zone information
RUN apk add gcompat krb5-libs tzdata
# - 'gcompat' to run QuestPDF dependencies on Alpine Linux
# - 'icu-libs' & 'icu-data-full' contains relevant localization data
# - 'krb5-libs' to enable Npgsql GSS session encryption
# - 'tzdata' contains relevant time zone information
RUN apk add gcompat icu-libs icu-data-full krb5-libs tzdata

# Prepare the directory used by the turnierplan.NET application
RUN mkdir "$DATA_DIRECTORY" && chown "$APP_UID" "$DATA_DIRECTORY"
Expand All @@ -41,5 +42,8 @@ COPY --from=publish /app/publish .
ENV Identity__StoragePath=$DATA_DIRECTORY/identity
ENV ImageStorage__StoragePath=$DATA_DIRECTORY/images

# Tells dotnet to use the previously installed localization data
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

# Entrypoint is the DLL of the Turnierplan.App project
ENTRYPOINT ["dotnet", "Turnierplan.App.dll"]
Loading