Skip to content

Commit

Permalink
copy subdirectory to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Joefficial committed May 16, 2021
1 parent 6d30853 commit 4bcdd53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RestApiExample/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["RestApiExample/RestApiExample.csproj", "./"]
RUN dotnet restore "RestApiExample.csproj"
COPY ["RestApiExample/RestApiExample.csproj", "./RestApiExample"]
RUN dotnet restore "RestApiExample/RestApiExample.csproj"
COPY . .
RUN dotnet publish "RestApiExample.csproj" -c Release -o /app/publish
RUN dotnet publish "RestApiExample/RestApiExample.csproj" -c Release -o /app/publish

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

0 comments on commit 4bcdd53

Please sign in to comment.