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

perf: reduce image size by 21.3MB #3849

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

aqyuki
Copy link
Contributor

@aqyuki aqyuki commented Aug 30, 2024

Summary

Container image size reduced from 63.8MB to 42.5MB.

changes made

  • Change base image to distroless (static-debian12)
  • Remove unnecessary RUN instructions
  • Add build options
    • add options to delete debug information
    • add options to remobe embedded paths

Refs

- Change base image to distroless (static-debian12)
- Remove unnecessary RUN instructions
- Add build options
  - add options to delete debug information
  - add options to remobe embedded paths
@aqyuki aqyuki requested a review from boojack as a code owner August 30, 2024 09:27
Copy link
Collaborator

@boojack boojack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@boojack boojack merged commit 0156c7e into usememos:main Aug 30, 2024
@aqyuki aqyuki deleted the feat/improve-docker-file branch August 30, 2024 12:02
@Promix953
Copy link

Can't you even fit this 21.3MB in your storage space?

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.

3 participants