Skip to content

Conversation

@philippschroeppel
Copy link
Collaborator

Changes

  • Fixed Rust dependency caching using dummy source files technique
  • Combined RUN commands to reduce Docker layer count
  • Updated Rust version to 1.86 for sccache compatibility
  • Improved layer ordering for better Docker cache utilization

Technical Details

  • Dependencies are now cached in separate Docker layers
  • Source code changes only rebuild the application, not dependencies
  • Tools installation moved to dedicated stage for cleaner separation
  • Maintains all existing functionality while improving build efficiency

Since dependencies and src/ are compiled together, the dummy source
files enable a separation of dependencies and src/ compilation so that
the cached layers can be used when only src/ changes between builds.
@ionicsolutions ionicsolutions requested a review from pbarker July 3, 2025 14:41
@ionicsolutions ionicsolutions merged commit 0817d3e into agentsea:main Jul 4, 2025
@philippschroeppel philippschroeppel deleted the feature/optimized_dockerfile branch July 7, 2025 06:31
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