Comments (2)
I found this issue when I realized my ClojureScript builds with Shadow-Cljs were failing.
The easiest temporary workaround for me was to downgrade shadow-cljs
to version 2.19.6
. Version 2.19.7
introduces the dependency to Java 11+ (indirectly through a newer version of the Google Closure Compiler).
from build-image.
I've looked further into this issue, because I wanted to see how hard it would be to create a PR.
DISCLAIMER: I am not Docker or Java or Linux expert, so read the following with that in mind.
According to http://packages.ubuntu.com the Debian (amd64) packages will take up the following space once installed:
- openjdk-8-jdk-headless 39Mb
- openjdk-11-jdk-headless 228 Mb
- openjdk-17-jdk-headless 246 Mb
Currently, the Docker "build image" takes up 2.12GB (just built it locally).
In my book, that would mean that for every Java version extra installed, the build image size would increase with at least 10%.
It seems all the Java packages contain the following zip file, with the source code for the Java release
It takes up a considerable amount of space on the disk (around 50Mb):
/usr/lib/jvm/java-11-openjdk-amd64/lib/src.zip
Dunno, how important that file is.
Trade offs, trade offs 🤷
from build-image.
Related Issues (20)
- Latest NPM versions throw an error when workspaces are configured HOT 1
- Missing workdir "/opt/build" in build container.
- Change the way how the elm compiler is installed as it is not compatible with arm64 HOT 2
- Why is the Hugo version out of date so much?
- Add Haldo linting to build image dockerfile HOT 1
- Run the docker image size inside CircleCI instead of github actions
- Container-structure-tests fail for arm64 HOT 2
- Create multiarch images and push them to the dockerhub HOT 5
- Cache Playwright browser dependencies HOT 3
- `target` directory for Rust is not stored
- Local build test fails with podman HOT 1
- Builds fail when using `[email protected]` HOT 5
- Same codebase stopped compiling in version 4.13 HOT 4
- Monorepo project cannot found pnpm HOT 2
- Failed to debug netlify locally HOT 1
- Add Support for .NET 7 HOT 6
- `NETLIFY_USE_PNPM: true` environment var not working after v4.15.0 HOT 1
- Show an understandable error when `getBuildInfo` failed
- Not respecting pnpm version specified in packageManager field of package.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-image.