Skip to main content
Install packages and create a reusable image.

Description

The install-packages prompt provides instructions for installing packages in a container and tagging the result for future reuse. It follows the prepare-and-tag pattern.

Parameters

Generated Instructions

When invoked with:
Returns:

Example Usage

Python Packages

Web Framework Stack

System Packages

For system packages, use a different base image and package manager:
Note: For Ubuntu, the agent should adapt to use apt install instead of pip install.

Implementation Notes

The agent should:
  1. Check if base image exists with list_images
  2. Import if needed with import_image
  3. Install packages with run:
  4. Tag the result with set_tag:

See Also