Update dockerfile

pull/162/head
Oleksii Holub 6 years ago
parent af9855fc15
commit a63bf95212

@ -17,13 +17,13 @@ COPY DiscordChatExporter.Core.Markdown DiscordChatExporter.Core.Markdown
COPY DiscordChatExporter.Core DiscordChatExporter.Core COPY DiscordChatExporter.Core DiscordChatExporter.Core
COPY DiscordChatExporter.Cli DiscordChatExporter.Cli COPY DiscordChatExporter.Cli DiscordChatExporter.Cli
RUN dotnet build DiscordChatExporter.Cli -c Release -f netcoreapp2.1 RUN dotnet publish DiscordChatExporter.Cli -c Release -f netcoreapp2.1
# Run # Run
FROM microsoft/dotnet:2.1-runtime AS run FROM microsoft/dotnet:2.1-runtime AS run
WORKDIR /app WORKDIR /app
COPY --from=build /src/DiscordChatExporter.Cli/bin/Release/netcoreapp2.1 ./ COPY --from=build /src/DiscordChatExporter.Cli/bin/Release/netcoreapp2.1/publish ./
ENTRYPOINT ["dotnet", "DiscordChatExporter.Cli.dll"] ENTRYPOINT ["dotnet", "DiscordChatExporter.Cli.dll"]
CMD ["-o", "out/"] CMD ["-o", "out/"]
Loading…
Cancel
Save