Создание заказов

This commit is contained in:
Халимов Рустам
2026-03-08 00:55:47 +03:00
parent 92f073e827
commit 5c9c6ab975
26 changed files with 1598 additions and 122 deletions
+7 -3
View File
@@ -9,9 +9,6 @@ COPY ["src/", "src/"]
# Restore dependencies
RUN dotnet restore "Nashel.sln"
# Copy the rest of the source code (already copied in previous step fundamentally, but ensuring context)
# Actually, copying src/ covers it.
# Publish the application
WORKDIR "/src/src/Host"
RUN dotnet publish "Nashel.Host.csproj" -c Release -o /app/publish /p:UseAppHost=false
@@ -19,6 +16,13 @@ RUN dotnet publish "Nashel.Host.csproj" -c Release -o /app/publish /p:UseAppHost
# Final stage
FROM mcr.microsoft.com/dotnet/aspnet:10.0-preview AS final
WORKDIR /app
# Устанавливаем зависимости Npgsql / Kerberos (нужны для PostgreSQL через Npgsql в .NET 10 preview)
RUN apt-get update && apt-get install -y --no-install-recommends \
libgssapi-krb5-2 \
krb5-user \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /app/publish .
# Copy wwwroot folder for static files (uploads)
COPY src/Host/wwwroot /app/wwwroot