Closed tonsV2 closed 4 years ago
Try this:
FROM gradle:6.3-jdk14 AS builder
WORKDIR /src
COPY . .
RUN gradle jpackageImage
FROM panga/alpine:3.8-glibc2.27
WORKDIR /app
COPY --from=builder /src/build/jpackage/jibcmd .
CMD exec ./bin/jibcmd
I suppose it's an Java/musl problem, thanks.
I'm trying to use the plugin for building a runtime image for Alpine.
My Dockerfile
My build.gradle
The error
Error: no such option: "-Djava.library.path".
If I'm using
adoptopenjdk/openjdk14:x86_64-alpine-jdk-14_36
as a base image I get the following error.jibcmd_1 | /bin/sh: exec: line 1: ./bin/jibcmd: not found
Adding to that it's worth noting that
jibcmd
is executable and the output of ldd shows all dependencies are found. Assuming I installgcompat
.Any suggestions about how to get this running?