xiaohongshu
xiaohongshu
docker-hub-toolkit
Automate Python project Docker Hub deployments with optimized multi-stage builds, CI/CD pipelines, and security best practices. This skill should be used when users ask to containerize Python apps, build Docker images, push to Docker Hub, set up CI/CD for Docker, optimize Dockerfiles, debug Docke...
Full skill instructions
End-to-end automation for deploying Python project images to Docker Hub with maximum performance and efficiency.
.dockerignore and docker-compose.ymlGather context to ensure successful implementation:
| Source | Gather |
|---|---|
| Codebase | Python framework (FastAPI/Flask/Django), entry point, dependencies file |
| Conversation | Docker Hub username, image name, target platforms, version tag |
| Skill References | Multi-stage patterns, CI/CD templates, security practices from references/ |
| User Guidelines | Team Docker standards, naming conventions, security requirements |
Ensure all required context is gathered before implementing. Only ask user for THEIR specific requirements (domain expertise is in this skill).
Ask about USER'S context:
uvicorn app.main:app)"1. Generate Dockerfile → Multi-stage optimized build
2. Create .dockerignore → Exclude unnecessary files
3. Build image → With BuildKit caching
4. Tag image → Semantic version + git SHA
5. Security scan → Check for vulnerabilities
6. Push to Docker Hub → Authenticated push
7. Set up CI/CD → GitHub Actions automation (optional)
pyproject.toml, setup.py, or .python-versionrequirements.txt, pyproject.toml, Pipfile).dockerignore from assets/templates/dockerignore.templatereferences/multi-stage-builds.md--mount=type=cache,target=/root/.cache/pip for pip caching--mount=type=bind for dependency files--user for clean multi-stage copypytest) and lintingdocker build --target devCMD/ENTRYPOINT| Script | Purpose | Usage |
|---|---|---|
scripts/build-and-push.sh | Build, tag, and push image | bash scripts/build-and-push.sh USERNAME APP_NAME VERSION |
scripts/validate-dockerfile.sh | Lint and validate Dockerfile | bash scripts/validate-dockerfile.sh [path/to/Dockerfile] |
scripts/setup-multiplatform.sh | Configure buildx for multi-arch | bash scripts/setup-multiplatform.sh |
| Error | Recovery |
|---|---|
| Build fails on pip install | Check requirements.txt syntax, verify package availability |
| Push denied/unauthorized | Run docker login, verify access token |
| Image too large (>500MB) | Switch to slim base, verify multi-stage COPY |
| BuildKit not available | Set DOCKER_BUILDKIT=1 or use docker buildx build |
| Multi-platform fails | Run scripts/setup-multiplatform.sh |
| Rate limit exceeded | Wait or use authenticated pulls |
See references/troubleshooting.md for comprehensive error resolution.
username/app:tagBefore delivering, verify:
.dockerignore excludes .git, __pycache__, .venv, .env, node_modulesPYTHONDONTWRITEBYTECODE=1 and PYTHONUNBUFFERED=1 set| File | When to Read |
|---|---|
references/multi-stage-builds.md | Dockerfile patterns, stage architecture, anti-patterns |
references/docker-hub-deployment.md | Push workflow, tagging strategy, Hub settings |
references/ci-cd-github-actions.md | GitHub Actions pipeline, caching, automation |
references/claude-integration.md | Claude Code commands, hooks, CLAUDE.md standards |
references/troubleshooting.md | Build/push errors, size issues, security fixes |
documentation/docker_hub_stages.md | Original multi-stage build stages reference |
documentation/docker_hub_python_project_partner.md | Claude capabilities for Docker Hub |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience