Skip to main content
Glama

Code MCP Server

by block

docker_build

Create Docker images from a Dockerfile using specified context, tag, build arguments, and platform options. Supports multi-stage builds, cache control, and base image updates.

Instructions

Build a Docker image from a Dockerfile

Input Schema

NameRequiredDescriptionDefault
build_argsNoBuild arguments as key-value pairs
contextNoBuild context path (default: current directory)
dockerfileNoPath to Dockerfile (relative to context)
no_cacheNoDo not use cache when building
platformNoTarget platform (e.g., linux/amd64, linux/arm64)
pullNoAlways attempt to pull newer version of base image
tagNoTag for the built image (e.g., myapp:latest)
targetNoTarget stage for multi-stage builds

Input Schema (JSON Schema)

{ "properties": { "build_args": { "description": "Build arguments as key-value pairs", "type": "object" }, "context": { "description": "Build context path (default: current directory)", "type": "string" }, "dockerfile": { "description": "Path to Dockerfile (relative to context)", "type": "string" }, "no_cache": { "description": "Do not use cache when building", "type": "boolean" }, "platform": { "description": "Target platform (e.g., linux/amd64, linux/arm64)", "type": "string" }, "pull": { "description": "Always attempt to pull newer version of base image", "type": "boolean" }, "tag": { "description": "Tag for the built image (e.g., myapp:latest)", "type": "string" }, "target": { "description": "Target stage for multi-stage builds", "type": "string" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server