# Source Command Build Docker

> Build and test Docker image locally

- Skill: `enuno/source-command-build-docker` (Agent Skill)
- Install (CLI): `npx skillmds@latest add enuno/source-command-build-docker`
- Raw SKILL.md: https://api.skillmd.com/api/skills/enuno/source-command-build-docker/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: enuno (https://skillmd.com/u/enuno)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/enuno/source-command-build-docker

---


# source-command-build-docker

Use this skill when the user asks to run the migrated source command `build-docker`.

## Command Template

Build the Docker image locally and verify it works.

Execute the following steps:

1. Check if Dockerfile exists; if not, offer to create one
2. Build the Docker image: `docker build -t unifi-mcp-server:local .`
3. Display the build output and any warnings
4. List the image size and layers
5. Optionally run the container with test environment variables

Report back with:

- Build success/failure status
- Image size
- Any build warnings or errors
- Suggestions for optimization if needed

