alexanderschmi commented on PR #2274:
URL: https://github.com/apache/systemds/pull/2274#issuecomment-3048316537
# Dockerfile Refactoring: `latest` & `testing-latest`
## Summary
This pull request refactors the two main Docker images of SystemDS —
`latest` and `testing-latest` — with the goal of reducing image size, improving
build efficiency, and modernizing the base images.
---
## Changes in Detail
### `latest`
- Switched from Ubuntu to Alpine
→ The base operating system was changed to Alpine Linux to significantly
reduce image size.
→ All package installations were adapted to use `apk`, and unnecessary
dependencies were removed.
- Minimal, production-oriented setup
→ Only essential runtime dependencies are included
→ Usage of jre instead of jdk in final image because of multi-stage
approach
→ Integration of native hadoop library
### `testing-latest`
- Switched from Ubuntu to debian:bullseye-slim
→ The operating system was changed to reduce image size.
- Migrated to a multi-stage build
→ The previous single-stage build was replaced with a multi-stage setup
→ The final testing image is smaller
- Fully functional test environment
→ All unit and integration tests run as before
→ CI integration remains fully compatible
---
## Results
- `latest`:
- smaller due to Alpine base (from 1.5 GiB to 460 MiB → reduced by 1.1
GB)
- more secure through Alpine base and a default non-root user
- `testing-latest`:
- smaller due to bullseye-slim base (from 1.7 GiB to 1.4 GiB → reduced
by 325 MB)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]