AdoptOpenJDK / AdoptOpenJDK/openjdk-docker

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

オープン
#260 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Slim
スター
423
フォーク
220
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。