Skip to content

Commit

Permalink
Update dockerfile to test nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
OoLunar committed Jul 7, 2024
1 parent 90f3625 commit 8c1791b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
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

0 comments on commit 8c1791b

Please sign in to comment.