Skip to content

Commit

Permalink
Modify after copy ops in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Joefficial committed May 15, 2021
1 parent 7f648b2 commit 6d30853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RestApiExample/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["RestApiExample/RestApiExample.csproj", "./"]
RUN dotnet restore "RestApiExample/RestApiExample.csproj"
RUN dotnet restore "RestApiExample.csproj"
COPY . .
RUN dotnet publish "RestApiExample/RestApiExample.csproj" -c Release -o /app/publish
RUN dotnet publish "RestApiExample.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "RestApiExample/RestApiExample.dll"]
ENTRYPOINT ["dotnet", "RestApiExample.dll"]

0 comments on commit 6d30853

Please sign in to comment.