Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sjbaker47 opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@sjbaker47
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant