react-dockerfile

Installation
SKILL.md

React Dockerfile Generator

Generate production-ready multi-stage Dockerfiles for React applications served with Nginx.

Workflow

  1. Determine build tool: Vite (default), Create React App, or Next.js static export
  2. Identify Node.js version from .nvmrc, package.json engines, or use Node 22 LTS
  3. Check for existing nginx configuration files
  4. Choose optimization: standard, non-root (recommended), or runtime env vars

Key Insight: Unlike server-side Node.js apps, React apps only need Node.js for building—the runtime is static files served by Nginx. This reduces image size from ~1GB to ~50MB.

Image Selection Guide

Related skills

More from jkappers/agent-skills

Installs
23
First Seen
Jan 24, 2026