Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric authored Mar 29, 2021
1 parent ea49fb3 commit ba6a597
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /source
WORKDIR /app

COPY . .
RUN dotnet restore

WORKDIR /source/MyApp
RUN dotnet publish -c release -o /app --no-restore
WORKDIR /app/MyApp
RUN dotnet publish -c release -o /out --no-restore

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

0 comments on commit ba6a597

Please sign in to comment.