[GH-ISSUE #143] Docker image upgrade #58

Closed
opened 2026-02-26 04:33:55 +03:00 by kerem · 7 comments
Owner

Originally created by @mageddo on GitHub (Aug 11, 2019).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/143

What is expected

DPS can be upgraded to debian 10 and start to use the slim image using a lightweight image

Originally created by @mageddo on GitHub (Aug 11, 2019). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/143 ### What is expected DPS can be upgraded to debian 10 and start to use the slim image using a lightweight image
kerem 2026-02-26 04:33:55 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@ricardoper commented on GitHub (Aug 13, 2019):

Hello,

Why not a static compile and use FROM scratch?

Sizes:
scratch - 11MB
debian:stable-slim - 80MB
debian:8 - 167MB

Take a look at CoreDNS...

Regards.

<!-- gh-comment-id:520938383 --> @ricardoper commented on GitHub (Aug 13, 2019): Hello, Why not a **static compile** and use `FROM scratch`? **Sizes**: scratch - 11MB debian:stable-slim - 80MB debian:8 - 167MB Take a look at CoreDNS... Regards.
Author
Owner

@mageddo commented on GitHub (Aug 13, 2019):

thanks for the suggestion @ricardoper

I never heard about scratch image, I will take a look then make some tests

<!-- gh-comment-id:520945657 --> @mageddo commented on GitHub (Aug 13, 2019): thanks for the suggestion @ricardoper I never heard about scratch image, I will take a look then make some tests
Author
Owner

@ricardoper commented on GitHub (Aug 13, 2019):

scratch is a special image because this is a empty image. No files inside...

I don't know all the parts of this project, but I think that you can compile statically with some extra flags. So no system dependencies, no dependencies at all, no system required on your container. The binary it's a bit larger but you reduce the container size a lot.

Less than 20MB for this container project will be a extreme plus.

You are welcome.

<!-- gh-comment-id:520973853 --> @ricardoper commented on GitHub (Aug 13, 2019): `scratch` is a special image because this is a empty image. No files inside... I don't know all the parts of this project, but I think that you can compile statically with some extra flags. So no system dependencies, no dependencies at all, no system required on your container. The binary it's a bit larger but you reduce the container size a lot. Less than 20MB for this container project will be a extreme plus. You are welcome.
Author
Owner

@ricardoper commented on GitHub (Aug 17, 2019):

The app needs access to SSL certificates?

In the next hours/days I will create a pull request for lighter containers.

I already have a functional example. Less than 11MB for AMD64 containers without SSL certificates.

<!-- gh-comment-id:522216309 --> @ricardoper commented on GitHub (Aug 17, 2019): The app needs access to SSL certificates? In the next hours/days I will create a pull request for lighter containers. I already have a functional example. Less than 11MB for AMD64 containers without SSL certificates.
Author
Owner

@mageddo commented on GitHub (Aug 17, 2019):

The app needs access to SSL certificates?

Actually not

<!-- gh-comment-id:522237816 --> @mageddo commented on GitHub (Aug 17, 2019): > The app needs access to SSL certificates? Actually not
Author
Owner

@mageddo commented on GitHub (Aug 17, 2019):

As said, DPS is dependent on some linux commands, I will keep this issue focused on upgrade and migrate the images to debian:10-slim as migrate to scratch image will requires a additional effort

<!-- gh-comment-id:522239577 --> @mageddo commented on GitHub (Aug 17, 2019): As said, DPS is dependent on some linux commands, I will keep this issue focused on upgrade and migrate the images to `debian:10-slim` as migrate to scratch image will requires a additional effort
Author
Owner

@ricardoper commented on GitHub (Aug 17, 2019):

I read all messages and understood... Sorry for that.

If you need my help, please don't hesitate to tell me.

<!-- gh-comment-id:522263834 --> @ricardoper commented on GitHub (Aug 17, 2019): I read all messages and understood... Sorry for that. If you need my help, please don't hesitate to tell me.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#58
No description provided.