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

Feature/Fix: Dockerfile - Make roughly 43% smaller #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

the-maldridge
Copy link

Using a combination of upx and a choosier copy I was able to reduce the final image size to 4.7M from the top of main. I have not yet tested this on a routeros target as I haven't got containers enabled in my test environment yet, but I believe the changes should be safe.

@the-maldridge the-maldridge changed the title Dockerfile: Make roughly 43% smaller Feature/Fix: Dockerfile - Make roughly 43% smaller May 29, 2024
@the-maldridge
Copy link
Author

Updated the title to consider this a Feature and Fix. Its a feature because the final artifact is considerably smaller now, and a fix because the images had a bunch of stuff that they didn't need in them, mostly the very broken remnants of APK.

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

Successfully merging this pull request may close these issues.

1 participant