How to Build and Run Node Apps with Docker and Compose

preview_player
Показать описание
--
Containers are an essential part of today's microservice ecosystem, as they allow developers and operators to maintain standards of reliability and reproducibility in fast-paced deployment scenarios. And while there are best practices that extend across stacks in containerized environments, there are also things that make each stack distinct, starting with the application image itself.

This talk will dive into some of these particularities, both at the image and service level, while also covering general best practices for building and running Node applications with database backends using Docker and Compose.

Speaker: Kathleen Juell, Digital Ocean
Twitter: @katjuell
Рекомендации по теме
Комментарии
Автор

Very valuable info for development and production environments

nathankrasney
Автор

At 8:55, the RUN "npm install" command is after your COPY ". .", completely wasting your time building. PRO-TIP, since your packages haven't changed, put the RUN command BEFORE the COPY ". ." command.

JustinNovack