Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Difficulty to run in docker container #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nicechester opened this issue May 3, 2025 · 1 comment
Closed

Difficulty to run in docker container #106

nicechester opened this issue May 3, 2025 · 1 comment

Comments

@nicechester
Copy link

nicechester commented May 3, 2025

Hi,

I made a simple spring boot app with your library on macbook (m3) and it works so easily.
Next, I built a docker image with that and tried to run a container with that but it prints errors like following:

2025-05-03 13:41:04 /tmp/libggml.so: libgomp.so.1: cannot open shared object file: No such file or directory
2025-05-03 13:41:04 Failed to load native library: /tmp/libggml.so. osinfo: Linux/aarch64

I think it's confusion due to the fact that I built the artifact on mac and the container is linux(ubuntu) based.
I tried to find jllama.so somewhere but couldn't.
Do you have any idea how to make this working?

@nicechester
Copy link
Author

I found solution.
It works after adding following line in Dockerfile

RUN apt update && apt install -y libgomp1

See my full Dockerfile for your ref

FROM eclipse-temurin:23-jdk
WORKDIR /app
RUN apt update && apt install -y libgomp1
COPY models /app/models
COPY target/*.jar /app/app.jar

ENTRYPOINT ["java", "-jar", "/app/app.jar"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant