[docker] Fix sourcelink
This commit is contained in:
parent
c4d2317897
commit
88fe9d54fa
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue