AdoptOpenJDK / AdoptOpenJDK/openjdk-docker

Missing "objcopy" from "adoptopenjdk/openjdk13:latest" Docker Image

Aperta
#260 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Slim
Stelle
423
Fork
220
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Platform: Linux
Architecture: AMD64

When trying to run jlink from a Dockerfile using OpenJDK13 it prints the following error message as it can't find "objcopy":

Step 1/9 : FROM adoptopenjdk/openjdk13:latest AS build
---> d468b759bbb1
Step 2/9 : RUN jlink --add-modules java.base,java.management,java.naming,java.scripting,jdk.httpserver,jdk.scripting.nashorn,jdk.naming.dns,jdk.crypto.ec --strip-debug --compress=2 --no-header-files --no-man-pages --output /tmp/java
---> Running in d08f4bfca2f7
Error: java.io.IOException: Cannot run program "objcopy": error=2, No such file or directory

If I remove "--strip-debug" then it works as it doesn't need "objcopy". It might be that you strip debug symbols as standard so no need to strip, but I did notice a larger Docker image compared to OpenJDK 11 when I don't strip.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.