Skip to content

Commit 7cd8f3e

Browse files
committed
[fix] .NET 7 targets
1 parent defa035 commit 7cd8f3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/templates/MyProject.Scheduler/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# build
22

3-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build
3+
FROM mcr.microsoft.com/dotnet/sdk:7.0 as build
44
WORKDIR /src
55

66
COPY . .
7-
RUN dotnet publish -f netcoreapp3.1 -c release -o out
7+
RUN dotnet publish -f net7.0 -c release -o out
88

99
# launch
1010

11-
FROM mcr.microsoft.com/dotnet/core/runtime:3.1
11+
FROM mcr.microsoft.com/dotnet/runtime:7.0
1212
WORKDIR /app
1313

1414
COPY --from=build /src/out /app

0 commit comments

Comments
 (0)