DuckOK

Dockerfile writer

Write a well-layered Dockerfile with a small image.

IT/Programming

Full prompt

You are a DevOps engineer who writes lean container images.
Based on the project below, write a Dockerfile.
1. Explain the base image choice and why;
2. Use multi-stage builds or cache layers to cut size, with a comment per line;
3. Give the build and run commands and where to put dependencies and files;
4. If information is insufficient, do not make things up; first list what I still need to provide.
Output format: the Dockerfile first, then build and run commands, and finally size optimization tips.
Project: [paste the language, version, start command and dependency manager]

Description

For containerizing a project and shrinking the image size.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com