# Bot Bazaar Dockerfile Linter

> Bot Bazaar Dockerfile Linter is a paid API for AI agents from bot-bazaar.fly.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Lints a Dockerfile's base image tag for best practices: pinned non-latest tag, slim/distroless variant, non-root USER directive, and pip --no-cache-dir flag.

## Facts

- Endpoint: GET https://bot-bazaar.fly.dev/v1/x402/dockerfile-lint?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bot-bazaar-dockerfile-linter-dde4c2ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1OUVtd9QiJqqGX6j_J41b

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bot-bazaar-dockerfile-linter-dde4c2ab
```

Example prompt: Can you lint my Dockerfile's base image — I'm using python:3.11-slim — and check if it follows best practices like a pinned non-latest tag, slim or distroless variant, non-root user, and pip --no-cache-dir?

## When to prefer this

Use this endpoint when you need a quick, automated lint check of a Dockerfile's base image configuration against a specific set of Docker best-practice rules (pinned tags, slim/distroless images, non-root user, pip caching). It is ideal for CI/CD pipelines, pre-commit hooks, or agent-driven code review workflows where a lightweight per-check microservice is preferred over a full local linting toolchain.

## Known failure modes

- Missing base_image query parameter returns an error
- Invalid or unrecognized image tag format may return no useful lint output
- Payment required (HTTP 402) if x402 payment header is absent or insufficient
- Endpoint may not be aware of very new or private registry images

## How this service works

Lint Dockerfile settings (pinned non-latest base image tag, slim/distroless image, non-root USER, pip --no-cache-dir).

## Output

Returns a structured lint report for the given container base image tag, flagging: whether the tag is pinned (not 'latest'), whether the image uses a slim or distroless variant, whether a non-root USER directive is expected, and whether pip --no-cache-dir is configured. Each check typically includes a pass/fail status and a description of the finding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base_image": {
       "type": "string",
       "description": "Container base image tag"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bot-bazaar-dockerfile-linter-dde4c2ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bot-bazaar.fly.dev](https://www.zero.xyz/host/bot-bazaar.fly.dev/llms.txt)
