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

fix(docker): add missing dependency #374

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Conversation

jgmontoya
Copy link
Contributor

  • Add the protobuf-compiler build dependency
  • Pin the builder rust version to ensure consistency
  • Optimize final image by not including build tools and rust compiler (reduced from ~1gb to <~100mb)
  • Copy source code instead of cloning to improve caching and make it easier to test local changes
  • Sets the workdir on the final image
  • Sets a non-root user to run the app which is the recommended way for security reasons

also improve final image size and security
@grunch grunch merged commit 96c3c3d into MostroP2P:main Oct 19, 2024
1 check passed
@jgmontoya jgmontoya deleted the fix/docker branch October 19, 2024 17:30
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