Первая загрузка

This commit is contained in:
2024-10-28 00:58:15 +03:00
parent 775e27e7ac
commit a2ab924577
41 changed files with 5794 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Otchinslator/Otchinslator.csproj", "Otchinslator/"]
RUN dotnet restore "Otchinslator/Otchinslator.csproj"
COPY . .
WORKDIR "/src/Otchinslator"
RUN dotnet build "Otchinslator.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Otchinslator.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Otchinslator.dll"]