/
softailor
/
gridient
Обзор
Документация
Войти
/
softailor
/
gridient
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
backend/Dockerfile
49 строк
3 KB
Jenkins
Auto add
18 фев 2026, 10:19
18 фев 2026, 10:19
1e6c4f8
Код
Авторство
О чём код?
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 5285 RUN apt-get update && \ apt-get install -y --no-install-recommends fonts-liberation && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY Gridient.Host.PostgreSQL/Gridient.Host.PostgreSQL.csproj Gridient.Host.PostgreSQL/ COPY Gridient.Core/Gridient.Core.csproj Gridient.Core/ COPY Gridient.Infrastructure.Persistence.PostgreSql/Gridient.Infrastructure.Persistence.PostgreSql.csproj Gridient.Infrastructure.Persistence.PostgreSql/ COPY Gridient.Infrastructure.Authentication.Local/Gridient.Infrastructure.Authentication.Local.csproj Gridient.Infrastructure.Authentication.Local/ COPY Gridient.Infrastructure.Authentication.Local.Persistence.PostgreSql/Gridient.Infrastructure.Authentication.Local.Persistence.PostgreSql.csproj Gridient.Infrastructure.Authentication.Local.Persistence.PostgreSql/ COPY Gridient.Infrastructure.Authentication.Oidc/Gridient.Infrastructure.Authentication.Oidc.csproj Gridient.Infrastructure.Authentication.Oidc/ COPY Gridient.Infrastructure.Authorization.Local/Gridient.Infrastructure.Authorization.Local.csproj Gridient.Infrastructure.Authorization.Local/ COPY Gridient.Infrastructure.Authorization.Local.Persistence.PostgreSql/Gridient.Infrastructure.Authorization.Local.Persistence.PostgreSql.csproj Gridient.Infrastructure.Authorization.Local.Persistence.PostgreSql/ RUN dotnet restore Gridient.Host.PostgreSQL/Gridient.Host.PostgreSQL.csproj COPY Gridient.Host.PostgreSQL/ Gridient.Host.PostgreSQL/ COPY Gridient.Core/ Gridient.Core/ COPY Gridient.Infrastructure.Persistence.PostgreSql/ Gridient.Infrastructure.Persistence.PostgreSql/ COPY Gridient.Infrastructure.Authentication.Local/ Gridient.Infrastructure.Authentication.Local/ COPY Gridient.Infrastructure.Authentication.Local.Persistence.PostgreSql/ Gridient.Infrastructure.Authentication.Local.Persistence.PostgreSql/ COPY Gridient.Infrastructure.Authentication.Oidc/ Gridient.Infrastructure.Authentication.Oidc/ COPY Gridient.Infrastructure.Authorization.Local/ Gridient.Infrastructure.Authorization.Local/ COPY Gridient.Infrastructure.Authorization.Local.Persistence.PostgreSql/ Gridient.Infrastructure.Authorization.Local.Persistence.PostgreSql/ RUN dotnet build Gridient.Host.PostgreSQL/Gridient.Host.PostgreSQL.csproj -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish ARG BUILD_CONFIGURATION=Release RUN dotnet publish Gridient.Host.PostgreSQL/Gridient.Host.PostgreSQL.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . # Значения по умолчанию (будут переопределены через docker-compose environment) ENV ASPNETCORE_ENVIRONMENT=Production ENTRYPOINT ["dotnet", "Gridient.Host.PostgreSQL.dll"]