DiscordChatExporter/Dockerfile

22 lines
718 B
Docker
Raw Normal View History

2019-03-22 09:09:07 -04:00
# Build
FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src
2019-03-22 09:09:07 -04:00
COPY favicon.ico ./
2019-03-03 09:05:09 -05:00
COPY DiscordChatExporter.Core.Markdown DiscordChatExporter.Core.Markdown
2019-04-10 16:45:21 -04:00
COPY DiscordChatExporter.Core.Models DiscordChatExporter.Core.Models
COPY DiscordChatExporter.Core.Rendering DiscordChatExporter.Core.Rendering
COPY DiscordChatExporter.Core.Services DiscordChatExporter.Core.Services
2018-09-13 15:50:15 -04:00
COPY DiscordChatExporter.Cli DiscordChatExporter.Cli
2019-03-22 09:09:07 -04:00
2019-03-25 05:04:39 -04:00
RUN dotnet publish DiscordChatExporter.Cli -c Release -f netcoreapp2.1
2018-09-13 15:50:15 -04:00
2019-03-22 09:09:07 -04:00
# Run
FROM microsoft/dotnet:2.1-runtime AS run
WORKDIR /app
2019-03-22 09:09:07 -04:00
2019-03-25 05:04:39 -04:00
COPY --from=build /src/DiscordChatExporter.Cli/bin/Release/netcoreapp2.1/publish ./
2019-03-22 09:09:07 -04:00
2019-03-25 09:22:51 -04:00
WORKDIR /app/out
ENTRYPOINT ["dotnet", "/app/DiscordChatExporter.Cli.dll"]