parent
47d8163a46
commit
65a528e7fe
@ -0,0 +1,18 @@
|
|||||||
|
# Build
|
||||||
|
FROM mcr.microsoft.com/dotnet/sdk:6.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 -c Release -o ./publish
|
||||||
|
|
||||||
|
# Run
|
||||||
|
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS run
|
||||||
|
|
||||||
|
COPY --from=build ./publish ./
|
||||||
|
|
||||||
|
WORKDIR ./out
|
||||||
|
ENTRYPOINT ["dotnet", "/DiscordChatExporter.Cli.dll"]
|
@ -1,20 +0,0 @@
|
|||||||
# 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"]
|
|
Loading…
Reference in new issue