Description
Theinstall-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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
packages | string | Yes | - | Packages to install (space-separated) |
image | string | No | python:3.11-slim | Base image to use |
Generated Instructions
When invoked with:Example Usage
Python Packages
Web Framework Stack
System Packages
For system packages, use a different base image and package manager:apt install instead of pip install.
Implementation Notes
The agent should:-
Check if base image exists with
list_images -
Import if needed with
import_image -
Install packages with
run: -
Tag the result with
set_tag:
See Also
- prepare-environment - Full environment preparation
- build-project - Build with dependencies
- multi-stage-build - Complex multi-stage builds