File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ EXPOSE 8081
77FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
88ARG BUILD_CONFIGURATION=Release
99WORKDIR /src
10- COPY ["API/API.csproj" , "API/" ]
10+ COPY ["DisBot. API/DisBot. API.csproj" , "DisBot. API/" ]
1111RUN dotnet restore "API/API.csproj"
1212COPY . .
13- WORKDIR "/src/API"
14- RUN dotnet build "./API.csproj" -c $BUILD_CONFIGURATION -o /app/build
13+ WORKDIR "/src/DisBot. API"
14+ RUN dotnet build "./DisBot. API.csproj" -c $BUILD_CONFIGURATION -o /app/build
1515
1616FROM build AS publish
1717ARG BUILD_CONFIGURATION=Release
18- RUN dotnet publish "./API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
18+ RUN dotnet publish "./DisBot. API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
1919
2020FROM base AS final
2121WORKDIR /app
2222COPY --from=publish /app/publish .
23- ENTRYPOINT ["dotnet" , "API.dll" ]
23+ ENTRYPOINT ["dotnet" , "DisBot. API.dll" ]
Original file line number Diff line number Diff line change 55 <Nullable >enable</Nullable >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <OverrideHtmlAssetPlaceholders >true</OverrideHtmlAssetPlaceholders >
8+ <DockerDefaultTargetOS >Linux</DockerDefaultTargetOS >
89 </PropertyGroup >
910
1011 <ItemGroup >
1718 <_ContentIncludedByDefault Remove =" wwwroot\css\app.css" />
1819 </ItemGroup >
1920
21+ <ItemGroup >
22+ <Content Include =" ..\.dockerignore" >
23+ <Link >.dockerignore</Link >
24+ </Content >
25+ </ItemGroup >
26+
2027</Project >
Original file line number Diff line number Diff line change 1+ FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
2+ USER $APP_UID
3+ WORKDIR /app
4+ EXPOSE 8080
5+ EXPOSE 8081
6+
7+ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
8+ ARG BUILD_CONFIGURATION=Release
9+ WORKDIR /src
10+ COPY ["DisBot.Dashboard/DisBot.Dashboard.csproj" , "DisBot.Dashboard/" ]
11+ RUN dotnet restore "DisBot.Dashboard/DisBot.Dashboard.csproj"
12+ COPY . .
13+ WORKDIR "/src/DisBot.Dashboard"
14+ RUN dotnet build "./DisBot.Dashboard.csproj" -c $BUILD_CONFIGURATION -o /app/build
15+
16+ FROM build AS publish
17+ ARG BUILD_CONFIGURATION=Release
18+ RUN dotnet publish "./DisBot.Dashboard.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
19+
20+ FROM base AS final
21+ WORKDIR /app
22+ COPY --from=publish /app/publish .
23+ ENTRYPOINT ["dotnet" , "DisBot.Dashboard.dll" ]
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ WORKDIR /app
55FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
66ARG BUILD_CONFIGURATION=Release
77WORKDIR /src
8- COPY ["DiscordBot/DiscordBot.csproj" , "DiscordBot/" ]
9- RUN dotnet restore "DiscordBot/DiscordBot.csproj"
8+ COPY ["DisBot. DiscordBot/DisBot. DiscordBot.csproj" , "DisBot. DiscordBot/" ]
9+ RUN dotnet restore "DisBot. DiscordBot/DisBot. DiscordBot.csproj"
1010COPY . .
11- WORKDIR "/src/DiscordBot"
12- RUN dotnet build "./DiscordBot.csproj" -c $BUILD_CONFIGURATION -o /app/build
11+ WORKDIR "/src/DisBot. DiscordBot"
12+ RUN dotnet build "./DisBot. DiscordBot.csproj" -c $BUILD_CONFIGURATION -o /app/build
1313
1414FROM build AS publish
1515ARG BUILD_CONFIGURATION=Release
16- RUN dotnet publish "./DiscordBot.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
16+ RUN dotnet publish "./DisBot. DiscordBot.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
1717
1818FROM base AS final
1919WORKDIR /app
2020COPY --from=publish /app/publish .
21- ENTRYPOINT ["dotnet" , "DiscordBot.dll" ]
21+ ENTRYPOINT ["dotnet" , "DisBot. DiscordBot.dll" ]
You can’t perform that action at this time.
0 commit comments