AdoptOpenJDK / AdoptOpenJDK/openjdk-docker

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

未关闭
#260 5 条评论 0 个 reaction 已指派 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 摘要。