Skip to content

Commit 633a3ec

Browse files
committed
chore: manually added libgit2 library
1 parent a5b3921 commit 633a3ec

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CompressImagesFunction/CompressImagesFunction.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
<Target Name="CopyNativeBinaries" AfterTargets="Build">
1010
<ItemGroup>
11-
<NativeBinary Include="$(TargetDir)bin/runtimes/linux-x64/native/libgit2-106a5f2.so" />
12-
<NativeBinary Include="$(TargetDir)bin/runtimes/osx/native/libgit2-106a5f2.dylib" />
13-
<NativeBinary Include="$(TargetDir)bin/runtimes/win-x86/native/git2-106a5f2.dll" />
14-
<NativeBinary Include="$(TargetDir)bin/runtimes/linux-x64/native/Magick.Native-Q16-x64.dll.so" />
15-
<NativeBinary Include="$(TargetDir)bin/runtimes/osx-x64/native/Magick.Native-Q16-x64.dll.dylib" />
16-
<NativeBinary Include="$(TargetDir)bin/runtimes/win-x64/native/Magick.Native-Q16-x64.dll" />
11+
<NativeBinary Include="$(TargetDir)bin/libgit2-106a5f2.so" />
12+
<NativeBinary Include="$(TargetDir)bin/libgit2-106a5f2.dylib" />
13+
<NativeBinary Include="$(TargetDir)bin/git2-106a5f2.dll" />
14+
<NativeBinary Include="$(TargetDir)bin/Magick.Native-Q16-x64.dll.so" />
15+
<NativeBinary Include="$(TargetDir)bin/Magick.Native-Q16-x64.dll.dylib" />
16+
<NativeBinary Include="$(TargetDir)bin/Magick.Native-Q16-x64.dll" />
1717
</ItemGroup>
1818
<Copy SourceFiles="@(NativeBinary)" DestinationFiles="@(NativeBinary->'$(TargetDir)bin/%(Filename)%(Extension)')" />
1919
</Target>
1.33 MB
Binary file not shown.

Dockerfile.CompressImages

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN mkdir -p /home/site/wwwroot
55
RUN cd /src/CompressImagesFunction && dotnet publish CompressImagesFunction.csproj -c Release --output /home/site/wwwroot
66

77
# Native Binaries
8-
RUN cd /src/CompressImagesFunction && cp bin/Release/netstandard2.0/bin/libgit2-106a5f2.so /home/site/wwwroot/bin/
8+
# TODO find why the runtimes folder is no longer created on dotnet sdk3.1
9+
RUN cd /src/CompressImagesFunction && cp libgit2-106a5f2.so /home/site/wwwroot/bin/
910
RUN cd /src/CompressImagesFunction && cp bin/Release/netstandard2.0/Magick.Native-Q16-x64.dll.so /home/site/wwwroot/bin/
1011

1112
FROM mcr.microsoft.com/azure-functions/dotnet:3.0

0 commit comments

Comments
 (0)