mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Prepare for .NET 8
This commit is contained in:
parent
ebceacc707
commit
578ed9be17
|
|
@ -12,7 +12,7 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build
|
||||||
# we can build the assembly for the correct platform.
|
# we can build the assembly for the correct platform.
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /tmp/dce
|
||||||
|
|
||||||
COPY favicon.ico .
|
COPY favicon.ico .
|
||||||
COPY NuGet.config .
|
COPY NuGet.config .
|
||||||
|
|
@ -27,7 +27,7 @@ RUN dotnet publish DiscordChatExporter.Cli \
|
||||||
--self-contained \
|
--self-contained \
|
||||||
--use-current-runtime \
|
--use-current-runtime \
|
||||||
--arch $TARGETARCH \
|
--arch $TARGETARCH \
|
||||||
--output publish/
|
--output DiscordChatExporter.Cli/bin/publish/
|
||||||
|
|
||||||
# -- Run
|
# -- Run
|
||||||
# Use `runtime-deps` instead of `runtime` because we have a self-contained assembly
|
# Use `runtime-deps` instead of `runtime` because we have a self-contained assembly
|
||||||
|
|
@ -42,5 +42,5 @@ USER dce
|
||||||
# stays the same for backwards compatibility.
|
# stays the same for backwards compatibility.
|
||||||
WORKDIR /out
|
WORKDIR /out
|
||||||
|
|
||||||
COPY --from=build /build/publish /opt/dce
|
COPY --from=build /tmp/dce/DiscordChatExporter.Cli/bin/publish /opt/dce
|
||||||
ENTRYPOINT ["/opt/dce/DiscordChatExporter.Cli"]
|
ENTRYPOINT ["/opt/dce/DiscordChatExporter.Cli"]
|
||||||
Loading…
Reference in a new issue