Skip to content

Commit

Permalink
Fix llama.cpp in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ButterscotchV committed Oct 18, 2024
1 parent 17da143 commit 5454c18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ RUN dotnet publish BingusApi -c Release -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /usr/src/app

# Install LLamaSharp runtime dependencies
RUN apt update && apt install -y libgomp1 musl libsnappy1v5 libjemalloc2 && apt clean
RUN ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
RUN ln -s /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 /usr/lib/x86_64-linux-gnu/libjemalloc.so.1

COPY --from=build-env /usr/src/app/out .
ENTRYPOINT ["./BingusApi"]
1 change: 1 addition & 0 deletions api.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ docker-compose.yml
/bingus-*/
/BingusLib/models/
/BingusApi/embedding_cache/
/BingusLib/config/

0 comments on commit 5454c18

Please sign in to comment.