Commit 3149d95
[SPARK-51520][K8S] Use JRE to reduce size of Docker image
### What changes were proposed in this pull request?
* Switch to Azul JRE to save ~100 megabytes on the final runtime image
* Add a Buildkit cache mount for the Gradle cache to speed up local Docker builds during development
### Why are the changes needed?
The image is currently quite large at ~500 megabytes
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Tested locally
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #167 from jacobsalway/use-jre-to-reduce-docker-image-size.
Authored-by: Jacob Salway <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>1 parent aa76c01 commit 3149d95
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | | - | |
43 | 48 | | |
| 49 | + | |
44 | 50 | | |
| 51 | + | |
45 | 52 | | |
0 commit comments