npxc 0.3.0

Sandboxed npm execution for MCP servers via Apple container
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The Dockerfile template used to build per-package container images.
//!
//! `PACKAGE_SPEC` and `NODE_IMAGE` are substituted by the container build
//! engine via `--build-arg` flags (see [`crate::runtime::build`]), so the
//! template is written to the build context verbatim.

/// The raw Dockerfile template string, embedded at compile time.
pub const DOCKERFILE_TEMPLATE: &str = include_str!("../templates/Dockerfile.template");

/// Dockerfile for the prebuilt userspace-WireGuard base image, which compiles
/// `boringtun-cli` once into a tiny image that per-package builds `COPY --from`.
/// Parameterized by the `BORINGTUN_VERSION` build arg.
pub const WG_BASE_DOCKERFILE: &str = include_str!("../templates/Dockerfile.wg-base");