47 lines
3.3 KiB
Text
47 lines
3.3 KiB
Text
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build
|
||
|
|
ENV DOTNET_NUGET_SIGNATURE_VERIFICATION=false
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
COPY "modules/Kurs.Languages/Kurs.Languages.Application.Contracts/Kurs.Languages.Application.Contracts.csproj" "modules/Kurs.Languages/Kurs.Languages.Application.Contracts/"
|
||
|
|
COPY "modules/Kurs.Languages/Kurs.Languages.Domain/Kurs.Languages.Domain.csproj" "modules/Kurs.Languages/Kurs.Languages.Domain/"
|
||
|
|
COPY "modules/Kurs.Languages/Kurs.Languages.Domain.Shared/Kurs.Languages.Domain.Shared.csproj" "modules/Kurs.Languages/Kurs.Languages.Domain.Shared/"
|
||
|
|
COPY "modules/Kurs.Languages/Kurs.Languages.EntityFrameworkCore/Kurs.Languages.EntityFrameworkCore.csproj" "modules/Kurs.Languages/Kurs.Languages.EntityFrameworkCore/"
|
||
|
|
COPY "modules/Kurs.MailQueue/Kurs.MailQueue.csproj" "modules/Kurs.MailQueue/"
|
||
|
|
COPY "modules/Kurs.Notifications/Kurs.Notifications.Application.Contracts/Kurs.Notifications.Application.Contracts.csproj" "modules/Kurs.Notifications/Kurs.Notifications.Application.Contracts/"
|
||
|
|
COPY "modules/Kurs.Notifications/Kurs.Notifications.Domain/Kurs.Notifications.Domain.csproj" "modules/Kurs.Notifications/Kurs.Notifications.Domain/"
|
||
|
|
COPY "modules/Kurs.Notifications/Kurs.Notifications.Domain.Shared/Kurs.Notifications.Domain.Shared.csproj" "modules/Kurs.Notifications/Kurs.Notifications.Domain.Shared/"
|
||
|
|
COPY "modules/Kurs.Notifications/Kurs.Notifications.EntityFrameworkCore/Kurs.Notifications.EntityFrameworkCore.csproj" "modules/Kurs.Notifications/Kurs.Notifications.EntityFrameworkCore/"
|
||
|
|
COPY "modules/Kurs.Sender/Kurs.Sender.csproj" "modules/Kurs.Sender/"
|
||
|
|
COPY "modules/Kurs.Settings/Kurs.Settings.Application.Contracts/Kurs.Settings.Application.Contracts.csproj" "modules/Kurs.Settings/Kurs.Settings.Application.Contracts/"
|
||
|
|
COPY "modules/Kurs.Settings/Kurs.Settings.Domain/Kurs.Settings.Domain.csproj" "modules/Kurs.Settings/Kurs.Settings.Domain/"
|
||
|
|
COPY "modules/Kurs.Settings/Kurs.Settings.Domain.Shared/Kurs.Settings.Domain.Shared.csproj" "modules/Kurs.Settings/Kurs.Settings.Domain.Shared/"
|
||
|
|
COPY "modules/Kurs.Settings/Kurs.Settings.EntityFrameworkCore/Kurs.Settings.EntityFrameworkCore.csproj" "modules/Kurs.Settings/Kurs.Settings.EntityFrameworkCore/"
|
||
|
|
COPY "src/Kurs.Platform.Application.Contracts/Kurs.Platform.Application.Contracts.csproj" "src/Kurs.Platform.Application.Contracts/"
|
||
|
|
COPY "src/Kurs.Platform.DbMigrator/Kurs.Platform.DbMigrator.csproj" "src/Kurs.Platform.DbMigrator/"
|
||
|
|
COPY "src/Kurs.Platform.Domain/Kurs.Platform.Domain.csproj" "src/Kurs.Platform.Domain/"
|
||
|
|
COPY "src/Kurs.Platform.Domain.Shared/Kurs.Platform.Domain.Shared.csproj" "src/Kurs.Platform.Domain.Shared/"
|
||
|
|
COPY "src/Kurs.Platform.EntityFrameworkCore/Kurs.Platform.EntityFrameworkCore.csproj" "src/Kurs.Platform.EntityFrameworkCore/"
|
||
|
|
RUN dotnet restore "src/Kurs.Platform.DbMigrator/Kurs.Platform.DbMigrator.csproj"
|
||
|
|
|
||
|
|
COPY . .
|
||
|
|
RUN dotnet publish "src/Kurs.Platform.DbMigrator/Kurs.Platform.DbMigrator.csproj" -c Release -o /app/publish --no-restore
|
||
|
|
|
||
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine AS final
|
||
|
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
|
||
|
|
LC_ALL=tr_TR.UTF-8 \
|
||
|
|
LANG=tr_TR.UTF-8
|
||
|
|
|
||
|
|
# icu'lar dotnet culture icin gerekli
|
||
|
|
# lib'ler wkhtmltopdf icin gerekli
|
||
|
|
RUN apk update
|
||
|
|
RUN apk add --no-cache \
|
||
|
|
icu-data-full \
|
||
|
|
icu-libs \
|
||
|
|
libgdiplus \
|
||
|
|
libc6-compat \
|
||
|
|
libc-dev
|
||
|
|
|
||
|
|
WORKDIR /srv/app
|
||
|
|
COPY --from=build /app/publish .
|
||
|
|
ENTRYPOINT ["./Kurs.Platform.DbMigrator"]
|