Skip to content

Commit

Permalink
Install libs in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Jan 19, 2024
1 parent 47258a3 commit 0932914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 33 deletions.
2 changes: 0 additions & 2 deletions DiscordBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using DiscordBot.Modules;
using DiscordBot.MusicPlayer.Config;
using DiscordBot.MusicPlayer.Factories;
using DiscordBot.Utils;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.VoiceNext;
Expand All @@ -26,7 +25,6 @@ internal static class Program
{
public static async Task Main()
{
await LibInstaller.InstallLibsAsync();
//gets the enviroment to be used when getting the appsettings
var enviroment = GetEnvironmentVariable("Environment") ??
"No environment found, using default appsettings";
Expand Down
31 changes: 0 additions & 31 deletions DiscordBot/Utils/LibInstaller.cs

This file was deleted.

3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR "/src/DiscordBot"
RUN dotnet publish "DiscordBot.csproj" -a $TARGETARCH --self-contained false -c Release --no-restore -o /app/publish

FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy
RUN apt update
RUN apt install libsodium-dev -y
RUN apt install libopus-dev -y
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "DiscordBot.dll"]

0 comments on commit 0932914

Please sign in to comment.