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

Multi Stage Dockerfile to decrease image size #5

Open
rblaine95 opened this issue Oct 10, 2018 · 0 comments
Open

Multi Stage Dockerfile to decrease image size #5

rblaine95 opened this issue Oct 10, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rblaine95
Copy link
Owner

rblaine95 commented Oct 10, 2018

Using a multi stage dockerfile results in an image that goes from (on quay) 83.9MB to 19.8MB.
Uncompressed, it goes from 234MB to 50.6MB.

The difference is that XMRig is built on docker build instead of on runtime.

If anyone would like to comment regarding the benefits on this, that would be appreciated.
I like that the image is significantly smaller, however I'm not certain regarding the performance hit.

quay.io/rblaine95/monero_xmrig:latest - larger image, compile on runtime
quay.io/rblaine95/monero_xmrig:tiny - smaller image, compile on build

@rblaine95 rblaine95 added enhancement New feature or request help wanted Extra attention is needed labels Oct 11, 2018
@rblaine95 rblaine95 self-assigned this Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant