# Build FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build 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 --configuration Release --output ./publish # Run FROM mcr.microsoft.com/dotnet/runtime:7.0 AS run RUN useradd dce USER dce COPY --from=build ./publish ./ WORKDIR ./out ENTRYPOINT ["dotnet", "../DiscordChatExporter.Cli.dll"]