How to set java.library.path as CLI argument in Dockerfile

I have build a docker image on top of my application. This is my Dockerfile. FROM eclipse-temurin:17 WORKDIR /app COPY ./MyApp. EXPOSE 9999 ENTRYPOINT ["java", "com.huhu.haha.hehe.MyClass", \ "-client", \ "-Xms128m", \ "-Djava.library.path=os/lib", \ "-Duser.language=en"] When I run the image, my application stops because of WrapperManager: Initializing... WrapperManager: WARNING - The wrapper.native_library system property was not WrapperManager: set. Using the default value, 'wrapper'. WrapperManager: WrapperManager: ERROR - Unable to load the Wrapper's native library because none of the WrapperManager: following files: WrapperManager: libwrapper-linux-x86-64.so WrapperManager: libwrapper.so WrapperManager: could be located on the following java.library.path: WrapperManager: /usr/java/packages/lib WrapperManager: /usr/lib64 WrapperManager: /lib64 WrapperManager: /lib WrapperManager: /usr/lib WrapperManager: Please see the documentation for the wrapper.java.library.path WrapperManager: configuration property. WrapperManager: The app uses a java wrapper. I am confused, because I set java.library.path explicitly in the CLI arguments in my Dockerfile.

How to set java.library.path as CLI argument in Dockerfile

I have build a docker image on top of my application. This is my Dockerfile.

FROM eclipse-temurin:17

WORKDIR /app

COPY ./MyApp.

EXPOSE 9999

ENTRYPOINT ["java", "com.huhu.haha.hehe.MyClass", \
            "-client", \
            "-Xms128m", \
            "-Djava.library.path=os/lib", \
            "-Duser.language=en"]

When I run the image, my application stops because of

WrapperManager: Initializing...
WrapperManager: WARNING - The wrapper.native_library system property was not
WrapperManager:           set. Using the default value, 'wrapper'.
WrapperManager:
WrapperManager: ERROR - Unable to load the Wrapper's native library because none of the
WrapperManager:         following files:
WrapperManager:           libwrapper-linux-x86-64.so
WrapperManager:           libwrapper.so
WrapperManager:         could be located on the following java.library.path:
WrapperManager:           /usr/java/packages/lib
WrapperManager:           /usr/lib64
WrapperManager:           /lib64
WrapperManager:           /lib
WrapperManager:           /usr/lib
WrapperManager:         Please see the documentation for the wrapper.java.library.path
WrapperManager:         configuration property.
WrapperManager:

The app uses a java wrapper. I am confused, because I set java.library.path explicitly in the CLI arguments in my Dockerfile.