From 88fe9d54fa806fff002ef3105e3fb91de2c8f88f Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Tue, 9 Jul 2024 01:38:08 +0200 Subject: [PATCH] [docker] Fix sourcelink --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index a9d20eb7..7f1d8ea1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,12 @@ COPY Iceshrimp.Parsing/ /src/Iceshrimp.Parsing/ COPY Iceshrimp.Frontend/ /src/Iceshrimp.Frontend/ COPY Iceshrimp.Shared/ /src/Iceshrimp.Shared/ +# copy files required for sourcelink +COPY .git/HEAD /src/.git/HEAD +COPY .git/config /src/.git/config +COPY .git/refs/heads/ /src/.git/refs/heads/ +RUN mkdir -p /src/.git/objects + # build without architecture set, allowing for reuse of the majority of the compiled IL between architectures RUN --mount=type=cache,target=/root/.nuget \ dotnet publish --no-restore -c Release -o /build -p:EnableAOT=$AOT -p:BundleNativeDeps=$VIPS -p:EnableLibVips=$VIPS