The terminal gateway (MS19) added node-pty which requires native
compilation via node-gyp. The Docker build was missing python3, make,
and g++ in the deps stage, causing pty.node to be absent at runtime
and crashing the API on startup.
Also adds openssl to the production stage to fix Prisma's libssl
detection warning.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>