|
|
@ -7,14 +7,16 @@ COPY Directory.Build.props ./
|
|
|
|
COPY DiscordChatExporter.Core ./DiscordChatExporter.Core
|
|
|
|
COPY DiscordChatExporter.Core ./DiscordChatExporter.Core
|
|
|
|
COPY DiscordChatExporter.Cli ./DiscordChatExporter.Cli
|
|
|
|
COPY DiscordChatExporter.Cli ./DiscordChatExporter.Cli
|
|
|
|
|
|
|
|
|
|
|
|
RUN dotnet publish DiscordChatExporter.Cli -c Release -o ./publish
|
|
|
|
RUN dotnet publish DiscordChatExporter.Cli --configuration Release --output ./publish
|
|
|
|
|
|
|
|
|
|
|
|
# Run
|
|
|
|
# Run
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
|
|
|
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
|
|
|
|
|
|
|
|
|
|
|
COPY --from=build ./publish /opt/dce
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN useradd dce
|
|
|
|
RUN useradd dce
|
|
|
|
USER dce
|
|
|
|
USER dce
|
|
|
|
WORKDIR /out
|
|
|
|
|
|
|
|
ENTRYPOINT ["dotnet", "/opt/dce/DiscordChatExporter.Cli.dll"]
|
|
|
|
COPY --from=build ./publish ./
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR ./out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["dotnet", "../DiscordChatExporter.Cli.dll"]
|
|
|
|