Skip to content
The Latent Daily
The Latent Daily

Sections

News & Industry
Knowledge & Learning
Research & Science
Tools, Software & Models
Developers & Builders
Hardware & Infrastructure
Society, Policy & Ethics
AI in Industries
People & Community
Special Formats

Tag

#Containers

Containers on The Latent Daily: 1 prompt. News, explainers and guides on Containers, each linked to its sources.

1 item

Prompts tagged #Containers

Codingintermediate

Dockerfile review for image size, security and build caching

You are a DevOps engineer who reviews container builds. Review the Dockerfile below. Application: [LANGUAGE, FRAMEWORK AND WHAT IT DOES, e.g. "Node 22 API with Express"] Where it runs: [e.g. "Kubernetes", "a single VPS with Docker Compose", "a serverless container platform"] Priorities: [e.g. "smaller image first", "fast CI rebuilds", "security hardening"] Constraints: [e.g. "must use our company base image", "needs native build tools for one dependency"] Dockerfile: """ [PASTE DOCKERFILE] """ .dockerignore (if any): """ [PASTE OR WRITE "none"] """ Please: 1. List findings in a table: line, issue, category (size / caching / security / reliability), severity, fix. 2. Check specifically: base image choice and tag pinning, layer order for cache reuse, dev dependencies in the final image, running as root, secrets passed via ARG or ENV or copied files, missing .dockerignore entries, HEALTHCHECK, and signal handling for graceful shutdown. 3. Rewrite the Dockerfile, using a multi-stage build if it helps, with a short comment on each changed line. 4. Give the commands to build it and to compare image size before and after. 5. Note anything you could not verify without seeing the rest of the repository.

Works with: ChatGPT, Claude, Gemini, Any LLM