https://github.com/bervproject/dockerimagesizecomparison
Docker Image Size Comparison
https://github.com/bervproject/dockerimagesizecomparison
Last synced: 5 months ago
JSON representation
Docker Image Size Comparison
- Host: GitHub
- URL: https://github.com/bervproject/dockerimagesizecomparison
- Owner: bervProject
- License: mit
- Created: 2023-06-30T02:05:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T11:46:58.000Z (over 2 years ago)
- Last Synced: 2025-05-20T19:36:50.699Z (10 months ago)
- Language: C#
- Size: 180 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DockerImageSizeComparison
Docker Image Size Comparison
## Comparison
| Target Framework | Single/Self-Contained | OS | Type | Size |
|:----------------:|:---------------------:|:--:|:----:|:----:|
| net6.0 | True | Alpine 3.18 | Console | 74 MB |
| net6.0 | False | Alpine 3.18 | Console | 82.7 MB |
| net6.0 | True | Alpine 3.18 | Web API | 13.9 MB (.NET Runtime is required) |
| net6.0 | False | Alpine 3.18 | Web API | 106.39 MB |
| net7.0 | False | Alpine 3.18 | Console | 84.47 MB |
| net7.0 | False | Alpine 3.18 | Web API | 109.95 MB |
| net8.0 | False | Alpine 3.18 | Console | 82.91 MB |
| net8.0 | False | Alpine 3.18 | Web API | 109.21 MB |
### Evidence

## Methodology
1. Build Image
2. Check Size
3. Run the Image (Should running!)
## TODO
1. Automatically Generate the Size.
2. Automatically Validate the applications.
3. Setting dependencies for Self Contained.
## Known Errors
* Not have `libgcc` & `libstc++`. Solution: Install those libs.
```bash
2023-06-30 09:48:31 Error loading shared library libgcc_s.so.1: No such file or directory (needed by ./SingleConsoleNet6)
2023-06-30 09:48:31 Error loading shared library libstdc++.so.6: No such file or directory (needed by ./SingleConsoleNet6)
```
* Web API still need .NET Runtime!
```bash
2023-06-30 10:40:36 You must install .NET to run this application.
2023-06-30 10:40:36
2023-06-30 10:40:36 App: /app/publish/SingleWebApiNet6
2023-06-30 10:40:36 Architecture: x64
2023-06-30 10:40:36 App host version: 6.0.19
2023-06-30 10:40:36 .NET location: Not found
2023-06-30 10:40:36
2023-06-30 10:40:36 Learn about runtime installation:
2023-06-30 10:40:36 https://aka.ms/dotnet/app-launch-failed
2023-06-30 10:40:36
2023-06-30 10:40:36 Download the .NET runtime:
2023-06-30 10:40:36 https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=alpine.3.18-x64&apphost_version=6.0.19
```