File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
2
- WORKDIR /app
3
- RUN apt-get update && apt-get install -y curl ffmpeg
4
- EXPOSE 80
5
-
6
- FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
7
- WORKDIR /src
8
- COPY ["DeviceStatusCheckerService.csproj" , "." ]
9
- RUN dotnet restore "./DeviceStatusCheckerService.csproj"
10
- COPY . .
11
- WORKDIR "/src/."
12
- RUN dotnet build "DeviceStatusCheckerService.csproj" -c Release -o /app/build
13
-
14
- FROM build AS publish
15
- RUN dotnet publish "DeviceStatusCheckerService.csproj" -c Release -o /app/publish /p:UseAppHost=false
16
-
17
- FROM base AS final
18
- WORKDIR /app
19
- COPY --from=publish /app/publish .
20
- ENTRYPOINT ["dotnet" , "DeviceStatusCheckerService.dll" ]
1
+ FROM mcr.microsoft.com/dotnet/sdk:7.0
2
+ RUN apt-get update && apt-get install -y curl ffmpeg make nano tar
3
+ WORKDIR "/src/"
4
+ COPY . /src/
You can’t perform that action at this time.
0 commit comments