home/coding/docker-hardening

Docker Hardening

GPTClaudeDeepSeek··1,293 copies·updated 2026-07-14
docker-hardening.prompt
# Dockerfile Hardening Guide

Use this prompt to secure and optimize Docker images.

---

## 🧠 Prompt

Harden this Dockerfile for production:

- Multi-stage build  
- Minimal layers  
- Non-root user  
- Remove secrets  

**Dockerfile:**

when to use it

Community prompt sourced from the open-source GitHub repo garlichck/chatgpt-prompt-for-software-engineer (MIT). A "Docker Hardening" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

garlichck/chatgpt-prompt-for-software-engineer · MIT