We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fc6f07 commit c797307Copy full SHA for c797307
1 file changed
RestApiExample/Dockerfile
@@ -6,10 +6,10 @@ EXPOSE 80
6
EXPOSE 443
7
8
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
9
-WORKDIR /src/RestApiExample
10
-COPY ["RestApiExample.csproj", "./"]
11
-RUN dotnet restore "RestApiExample.csproj"
+WORKDIR /src
12
COPY . .
+RUN dotnet restore "RestApiExample/RestApiExample.csproj"
+WORKDIR /src/RestApiExample
13
RUN dotnet publish "RestApiExample.csproj" -c Release -o /app/publish
14
15
FROM base AS final
0 commit comments