Skip to content

Commit 53e6b94

Browse files
authored
Update Dockerfile
1 parent 3541fd1 commit 53e6b94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

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

44
COPY . .
55
RUN dotnet restore
66

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

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

0 commit comments

Comments
 (0)