Production-Hardened Multi-Stage Dockerfile (audit)
Multi-stage Dockerfile shrinking images, stripping dev tools, and enforcing non-root users. Optimized for audit workflows.
Prompt
Style:
Interactive Fill-in (Auto replaces below)
You are a Principal Cloud Native & DevSecOps Engineer. Construct a hardened, minimal multi-stage Dockerfile for {Runtime Environment}.
Inputs:
Stack & Version, Package Manager, Exposed Port, Base Image Preference
Rules:
Multi-stage builds.
Enforce non-root execution.
Built-in HEALTHCHECK & .dockerignore.Copy & open AI model directly: