You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Build
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
COPY favicon.ico ./
|
|
|
|
COPY NuGet.config ./
|
|
|
|
COPY Directory.Build.props ./
|
|
|
|
COPY DiscordChatExporter.Core DiscordChatExporter.Core
|
|
|
|
COPY DiscordChatExporter.Cli DiscordChatExporter.Cli
|
|
|
|
|
|
|
|
RUN dotnet publish DiscordChatExporter.Cli -o DiscordChatExporter.Cli/publish -c Release
|
|
|
|
|
|
|
|
# Run
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY --from=build /src/DiscordChatExporter.Cli/publish ./
|
|
|
|
|
|
|
|
WORKDIR /app/out
|
|
|
|
ENTRYPOINT ["dotnet", "/app/DiscordChatExporter.Cli.dll"]
|