Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Node.js Pnpm and Store Optimization
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[PNPM_VERSION] - ✦
[STORE_PATH] - ✦
[FETCH_COMMAND]
nodejs-pnpm-store-docker-optimization.txt
Technical SEO Expert and Engineer: Design a Dockerfile specifically for Pnpm. Utilize the Pnpm store at [STORE_PATH] with Docker BuildKit mounts. Implement a multi-stage build where the first stage performs 'pnpm fetch' to download dependencies based on the lockfile, and the second stage builds the app. The final stage should only contain the pruned production node_modules and the dist folder. Ensure the [PNPM_VERSION] is pinned for reproducibility.
Example Output
"A modern Dockerfile that leverages Pnpm's content-addressable storage for extremely fast and space-efficient builds."