systemprompt_cli/commands/cloud/dockerfile/mod.rs
1//! Generation and validation of the per-profile deployment Dockerfile.
2//!
3//! [`DockerfileBuilder`] renders a Dockerfile from the discovered extensions
4//! and services config; the validation helpers assert a profile's Dockerfile
5//! copies the expected MCP binaries and carries no stale ones.
6
7mod builder;
8mod validation;
9
10use std::path::Path;
11
12pub use builder::DockerfileBuilder;
13pub use validation::{
14 get_required_mcp_copy_lines, validate_dockerfile_has_mcp_binaries,
15 validate_dockerfile_has_no_stale_binaries, validate_profile_dockerfile,
16};
17
18pub fn generate_dockerfile_content(project_root: &Path) -> String {
19 DockerfileBuilder::new(project_root).build()
20}