Kunai - Dockerfile Simplified & Container Size Reduced

Description:
This update simplifies the Docker build process and reduces the container image size by adopting the official rust:latest base image. The changes maintain all required functionality while improving efficiency. A pre-built container is now available on GitHub for immediate use at GitHub - kunai-project/kunai-build-docker: Dockerfile to build kunai without effort · GitHub .

Progress:

  • Base Image: Switched from archlinux:latest to rust:latest to leverage a pre-configured Rust environment and reduce image size.

  • Toolchain Setup: Simplified Rust toolchain installation and consolidated package/component setups, further reducing image layers.

  • Imrpovements:

    • Removed redundant user creation and WORKDIR setup.

    • Container usable with any user/group

  • Testing:

    • Docker image builds successfully with the new configuration.

    • All build tools and cross-compilation capabilities verified.

  • Pre-Built Container: A ready-to-use container is now available on GitHub for faster deployment and testing.

Next Steps:

  • Monitor for any downstream integration issues.

  • Gather feedback on the pre-built container and further optimize image size.

  • Explore additional opportunities for build time and efficiency improvements.

1 Like