Skip to content

Commit

Permalink
install ffmpeg in container
Browse files Browse the repository at this point in the history
  • Loading branch information
Deliay committed Dec 27, 2023
1 parent 3069d8a commit de1211f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Mikibot.Analyze/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS run
USER root
RUN apt update
RUN apt install -y ffmpeg


FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
USER app
WORKDIR /app
Expand All @@ -21,7 +27,8 @@ FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Mikibot.Analyze.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
FROM run AS final
USER app
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Mikibot.Analyze.dll"]

0 comments on commit de1211f

Please sign in to comment.