In production PHP 8.4 & Laravel 12 (Docker), what is the primary engineering purpose of 'Multi-Stage Dockerfile Architecture for PHP 8.4 & Laravel'?
- A. Shrink production PHP container images cleanly from 950MB down to ~140MB.
- B. Hardcoding plaintext production database credentials, API secrets, and root keys inside Git repositories.
- C. Deploying unverified changes directly to live production without automated tests or rollback plans.
- D. Bypassing authentication, input validation, and TLS encryption across internal API endpoints.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Multi-Stage Dockerfile Architecture for PHP 8.4 & Laravel' is used in production Docker specifically for: Shrink production PHP container images cleanly from 950MB down to ~140MB.