Skip to content

Commit

Permalink
Switch docker to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed Mar 5, 2023
1 parent 2157f00 commit 88163aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
# BUILD
FROM mcr.microsoft.com/dotnet/sdk:7.0-alpine AS build
WORKDIR /src
COPY ./ModCore ./
RUN dotnet restore
RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/aspnet:7.0
# RUNNER IMAGE
FROM mcr.microsoft.com/dotnet/aspnet:7.0-alpine
WORKDIR /app
COPY --from=build /src/out .
WORKDIR /config
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y --no-install-recommends ffmpeg
# ADD FFMPEG FOR VOICE SUPPORT
RUN apk add ffmpeg
ENTRYPOINT ["dotnet", "/app/ModCore.dll"]

0 comments on commit 88163aa

Please sign in to comment.