Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Jan 19, 2024
1 parent 981adf4 commit d329feb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit d329feb

Please sign in to comment.