Skip to content

Commit

Permalink
lets try 9
Browse files Browse the repository at this point in the history
  • Loading branch information
th0mk committed Nov 10, 2024
1 parent 91e5f52 commit b92574e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base

COPY --from=jrottenberg/ffmpeg:7.1-alpine320 /usr/local/bin/ffmpeg /usr/bin/ffmpeg
COPY --from=jrottenberg/ffmpeg:7.1-alpine320 /usr/local/bin/ffprobe /usr/bin/ffprobe

# Install required dependencies
RUN apt-get update && apt-get install -y libgdiplus

FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base
RUN apt-get update && apt-get install -y libgdiplus ffmpeg
WORKDIR /app

#####################
Expand Down Expand Up @@ -57,8 +51,6 @@ COPY --from=publish /app/publish .

ENV DOTNET_gcServer=1

RUN chmod +x /usr/bin/ffmpeg /usr/bin/ffprobe

ENTRYPOINT ["dotnet", "FMBot.Bot.dll"]

HEALTHCHECK --interval=20s --timeout=20s --retries=90 CMD find healthcheck -mmin -1

0 comments on commit b92574e

Please sign in to comment.