Skip to content

Commit ff683bd

Browse files
committed
Update Dockerfile
1 parent becb7a7 commit ff683bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
2-
WORKDIR /source
1+
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build
2+
WORKDIR /app
33

44
COPY . .
55
RUN dotnet restore ./src
66

7-
WORKDIR /source/src
8-
RUN dotnet publish ./RedisStackOverflow/ -c release -o /app --no-restore
7+
WORKDIR /app/RedisStackOverflow
8+
RUN dotnet publish -c release -o /out --no-restore
99

10-
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
10+
FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS runtime
1111
WORKDIR /app
12-
COPY --from=build /app ./
12+
COPY --from=build /out .
1313
ENTRYPOINT ["dotnet", "RedisStackOverflow.dll"]

0 commit comments

Comments
 (0)