Skip to content

Commit

Permalink
Docker - publish only the App project
Browse files Browse the repository at this point in the history
  • Loading branch information
Xymanek committed Mar 8, 2020
1 parent c86011c commit f6652a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ RUN dotnet restore

# Copy everything else and build
COPY . ./
WORKDIR /app/DiscordGitToolbox.App
RUN dotnet publish -c Release -o out

# Build runtime image
FROM mcr.microsoft.com/dotnet/core/runtime:3.1
WORKDIR /app
COPY --from=build-env /app/out .
COPY --from=build-env /app/DiscordGitToolbox.App/out .
ENTRYPOINT ["dotnet", "DiscordGitToolbox.App.dll"]

0 comments on commit f6652a4

Please sign in to comment.