-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) 路 720 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (17 loc) 路 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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:6.0-alpine AS base
WORKDIR /app
RUN apk update && apk add ffmpeg
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
WORKDIR /src
COPY ["VideoEncoder/VideoEncoder.fsproj", "VideoEncoder/"]
RUN dotnet restore "VideoEncoder/VideoEncoder.fsproj"
COPY . .
WORKDIR "/src/VideoEncoder"
RUN dotnet build "VideoEncoder.fsproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "VideoEncoder.fsproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VideoEncoder.dll"]