We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3541fd1 commit 53e6b94Copy full SHA for 53e6b94
Dockerfile
@@ -1,13 +1,13 @@
1
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
2
-WORKDIR /source
+WORKDIR /app
3
4
COPY . .
5
RUN dotnet restore
6
7
-WORKDIR /source/MyApp
8
-RUN dotnet publish -c release -o /app --no-restore
+WORKDIR /app/MyApp
+RUN dotnet publish -c release -o /out --no-restore
9
10
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
11
WORKDIR /app
12
-COPY --from=build /app ./
+COPY --from=build /out ./
13
ENTRYPOINT ["dotnet", "MyApp.dll"]
0 commit comments