Создание заказов
This commit is contained in:
+7
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user