Skip to content
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

Create a Docker using alpine #60

Open
xbgmsharp opened this issue Dec 20, 2019 · 3 comments
Open

Create a Docker using alpine #60

xbgmsharp opened this issue Dec 20, 2019 · 3 comments

Comments

@xbgmsharp
Copy link
Owner

Create a Docker using alpine to reduce disk usage.
306MB vs 582MB

REPOSITORY                               TAG                 IMAGE ID            CREATED             SIZE
xbgmsharp/ipxe-buildweb                  alpine              a42b85c4a88b        18 seconds ago      306MB
xbgmsharp/ipxe-buildweb                  ubuntu              2722181984c0        2 minutes ago       582MB
@danielewood
Copy link
Contributor

danielewood commented Dec 20, 2019

If you are taking this route for the purpose of minification, you may want to take a look at this project:
https://github.com/docker-slim/docker-slim

Hacker News discussion from last week.

@xbgmsharp
Copy link
Owner Author

Thanks for the tip, very interesting. However i already create the new dockerfile.

@lps-rocks
Copy link

lps-rocks commented May 11, 2020

I've built an Alpine version of this project here: https://github.com/lps-rocks/rom-o-matic

The resulting docker image is roughly 70MB in size - https://hub.docker.com/r/lpsrocks/rom-o-matic/tags

I tried using docker-slim but it actually increased the size of the image. The dependencies are also part of the image now. Only iPXE is cloned and prepped on boot which makes the docker image boot much much quicker with much lower resource usage. Also much less to break during the running of the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants