DNSCrypt / DNSCrypt/dnscrypt-server-docker
Considerations about a slimmer container base image than Ubuntu
- Ngôn ngữ chính
- Shell
- Star
- 816
- Fork
- 152
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hello! Currently Ubuntu is used as base image for creating this container:
https://github.com/DNSCrypt/dnscrypt-server-docker/blob/8ea0501db173c81a8873a75db545ad9830c060a7/Dockerfile#L1
The Ubuntu base image is pretty *fat*, meaning a larger attack surface, a bigger size (80MB vs for example Alpine with <10MB) as well as possibly slightly worse performance on resource-constrained systems like Raspberry Pi's (_untested claim_).
Have you considered using a slimmer base image like Alpine, [Wolfi](https://github.com/wolfi-dev/) or [Distroless](https://github.com/GoogleContainerTools/distroless) (or even UBI)?
You [switched from using Alpine to Ubuntu in 2019](https://github.com/DNSCrypt/dnscrypt-server-docker/commit/cbf9f7c4ccd7d7aa9c7c5ae16929bf5be2c9450a) because "Rust doesn't work well with musl-libc" (quote from the linked commit message). These issues seem to be largely resolved by now, there is also an [official up-to-date Rust package in the Alpine package repository](https://pkgs.alpinelinux.org/package/edge/main/aarch64/rust).
The other mentioned base images like Wolfi do not use `musl` altogether.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với dòng 1 của Dockerfile và commit năm 2019 được liên kết, giải thích việc chuyển từ Alpine sang Ubuntu. So sánh Alpine, Wolfi và Distroless làm các image base thay thế, sau đó build và kiểm thử image; công việc được xem là hoàn tất khi một base gọn hơn hoạt động mà không làm hỏng container resolver.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker
- Lĩnh vực
- devops, infrastructure
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100