This commit is contained in:
h z
2025-05-04 19:11:12 +01:00
parent 11fed38dff
commit 84a62ba048
3 changed files with 14 additions and 7 deletions

View File

@@ -9,15 +9,14 @@
<ItemGroup>
<Content Include="..\.dockerignore">
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
<PackageReference Include="Alchegos.Core" Version="0.0.1" />
<PackageReference Include="RabbitMQ.Client" Version="7.1.1" />
</Content>
<PackageReference Include="Alchegos.Core" Version="0.0.1" />
<PackageReference Include="RabbitMQ.Client" Version="7.1.1" />
</ItemGroup>
<ItemGroup>
<Folder Include="EventHandlerDispatchers\" />
<None Include="NuGet.Config" />
</ItemGroup>
</Project>

View File

@@ -7,6 +7,7 @@ EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY NuGet.Config ./
COPY ["Alchegos.Webhook.csproj", "./"]
RUN dotnet restore "Alchegos.Webhook.csproj"
COPY . .
@@ -15,7 +16,7 @@ RUN dotnet build "/src/Alchegos.Webhook.csproj" -c $BUILD_CONFIGURATION -o /app/
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Alchegos.Webhook.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "/src/Alchegos.Webhook.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app

7
NuGet.Config Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="hangman-lab" value="https://git.hangman-lab.top/api/packages/hzhang/nuget/index.json" />
</packageSources>
</configuration>