-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dockerfile to test nuget packages
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build | ||
WORKDIR /src | ||
COPY ./ /src | ||
RUN dotnet publish -c Release | ||
ENTRYPOINT dotnet /src/examples/HelloWorld/bin/Release/net8.0/HelloWorld.dll | ||
RUN dotnet pack -c Release \ | ||
&& cd examples/HelloWorld \ | ||
&& dotnet add package "OoLunar.DSharpPlus.VoiceLink.Natives.Sodium" --source "/src/src/DSharpPlus.VoiceLink.Natives.Sodium/bin/Release/" \ | ||
&& dotnet add package "OoLunar.DSharpPlus.VoiceLink.Natives.Opus" --source "/src/src/DSharpPlus.VoiceLink.Natives.Opus/bin/Release/" \ | ||
&& dotnet publish -c Release | ||
ENTRYPOINT dotnet /src/examples/HelloWorld/bin/Release/net8.0/publish/HelloWorld.dll |