diff --git a/Dockerfile b/Dockerfile index 253bc19..ff42104 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,11 @@ COPY . . WORKDIR "/src/DiscordBot" RUN dotnet publish "DiscordBot.csproj" -a $TARGETARCH --self-contained false -c Release --no-restore -o /app/publish -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime:7.0 +FROM mcr.microsoft.com/dotnet/runtime:7.0 +ARG TARGETARCH RUN apt update -RUN apt install libsodium-dev -y -RUN apt install libopus-dev -y +RUN apt install libsodium-dev:$TARGETARCH -y +RUN apt install libopus-dev:$TARGETARCH -y WORKDIR /app COPY --from=build /app/publish . ENTRYPOINT ["dotnet", "DiscordBot.dll"]