Agent Forge Docker Build Integration
Status: 🟢 In-use Category: Integrations Date: October 30, 2025
Overview​
The GitHub Action workflow has been configured to use a custom Dockerfile from build/agent-forge/Dockerfile instead of relying on a Dockerfile from the cloned community-plugins repository. This enables automated building and publishing of the Backstage Agent Forge plugin as a Docker image to GitHub Container Registry (ghcr.io).
Testing Locally​
The local test script (test-build-locally.sh) also uses your custom Dockerfile:
# Run the local test
./.github/test-build-locally.sh
The script will:
- Clone the community-plugins repository
- Copy your custom Dockerfile
- Build the project
- Create the Docker image
- Offer to run the container
Best Practices​
- Keep it Simple: Don't add unnecessary dependencies
- Use Multi-Stage: Separate build and runtime stages
- Cache Layers: Order commands from least to most frequently changing
- Security: Use official base images and keep them updated
- Document: Comment complex commands in the Dockerfile
- Test: Always test changes locally before pushing
Related​
- Architecture: architecture.md