Skip to content

Use a tiniest base image for Docker #2459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jylenhof opened this issue Dec 14, 2020 · 2 comments
Closed

Use a tiniest base image for Docker #2459

jylenhof opened this issue Dec 14, 2020 · 2 comments
Labels
feature New user visible feature

Comments

@jylenhof
Copy link

Instead of using debian as image, use a slim image

@jylenhof jylenhof added the feature New user visible feature label Dec 14, 2020
@jylenhof
Copy link
Author

Quite some gain (Perhaps a part of the gain here is due to arm deb package not on my server, more tidy to come)

root  ~  docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
codercom/code-server-amd64 3.7.4 899c7b2ff7e8 13 minutes ago 717MB
codercom/code-server latest b425735a3231 2 weeks ago 873MB
 root  ~  

@nhooyr
Copy link
Contributor

nhooyr commented Dec 18, 2020

So I looked into this.

See https://stackoverflow.com/questions/59794891/how-does-debian-differ-from-debian-slim

I got

$ diff debian-stable-pkgs.txt debian-stable-slim-pkgs.txt
23,24d22
< iproute2					install
< iputils-ping					install
35,36d32
< libcap2:amd64					install
< libcap2-bin					install
40d35
< libelf1:amd64					install
53d47
< libmnl0:amd64					install
77d70
< libxtables12:amd64				install

As the additional packages. iproute2 and iputils-ping are extremely useful as a developer. We can add them in manually but I think #2488 is the way to go here.

@nhooyr nhooyr closed this as completed Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New user visible feature
Projects
None yet
Development

No branches or pull requests

2 participants