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

refactor: refactor dockerfile to reduce image and build time #782

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

HashWarlock
Copy link
Collaborator

Relates to:

Risks

Low, only pertains to docker users

Background

Currently, the developer experience for using docker is bad. Build times can take up to 30 minutes and image size is at 6GB. Reducing this pain point is key for more developer adoption.

What does this PR do?

This PR accomplishes the following:

  • Reduces the Docker image size from 6GB to 3.49GB
  • Cuts the Docker build time in half
    • Tested on a Intel TDX Server (188s to 70s)
    • Mac M1 Max (688.9s to 327.4s)

What kind of change is this?

Improvements (refactor Dockerfile)

Documentation changes needed?

My changes do not require a change to the project documentation.

Testing

  • (Build) On mac m series docker buildx build --platform linux/amd64 -t eliza .
  • (Build) On linux/amd64 docker build -t eliza .
  • (Build & Start) pnpm docker

Where should a reviewer start?

Detailed testing steps

@lalalune lalalune merged commit 3803f0d into elizaOS:main Dec 2, 2024
3 checks passed
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.

2 participants