镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Minimal Dockerfile could potentially use headless JDK (or even JRE) #141

Open

Description

@sjbaker47

In the base image ubuntu/minimal/Dockerfile, the much larger package openjdk-8-jdk is used instead of openjdk-8-jdk-headless. Since the typical use cases of Databricks instances are interactive notebooks and unattended jobs, and many image processing features are in the 'headless' package anyway, I'd be surprised if anyone requires the dependencies in the full version. The space savings are significant: just the X11 DRI drivers that get pulled in are themselves ~350MB.

Also, I've done some preliminary testing, and it even seems like Scala works with the JRE (not JDK) version of this package. I'm not sure if there's some edge case that requires the javac compiler to be around, though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions