Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Docker

Advanced AI Prompt for Node.js Next.js Standalone Deployment

Customize the variables below to instantly engineer your prompt.

Required Variables

nextjs-standalone-docker-optimization.txt
You are a Frontend Infrastructure Engineer. Create an ultra-optimized, multi-stage Dockerfile tailored specifically for Next.js 13/14+ utilizing the 'standalone' output feature. Stage 1 (Builder): Install dependencies, handle [NEXT_CONFIG_FILE], and execute the build. Stage 2 (Runner): Perform a selective copy of only `.next/standalone`, `.next/static`, and the [PUBLIC_ASSETS_DIR]. Ensure the image optimization library 'sharp' (version [SHARP_VERSION]) is correctly installed as a standalone dependency in the runner stage to prevent missing binary errors. The final image must be the absolute minimum size required to run the Node.js server, stripping out all source code, `node_modules`, and development tools.

Example Text Output

"A specialized Dockerfile that reduces Next.js image sizes from 1GB+ down to ~100MB by utilizing the standalone output feature."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Node.js Next.js Standalone Deployment" prompt used for?

A specialized Dockerfile that reduces Next.js image sizes from 1GB+ down to ~100MB by utilizing the standalone output feature.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.