Skip to content

Commit 4c840fc

Browse files
author
Ibrahim Ethem Gursoy
committed
Update docker files
1 parent 17d895b commit 4c840fc

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

Dockerfile

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
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/

0 commit comments

Comments
 (0)