Containerizing Angular Applications with Docker

Learn how to build and run your Angular application code using Docker containers. Explore how to write dockerfiles for custom images, leverage multi-stage dockerfiles, container orchestration with Docker Compose, and much more.
Course info
Rating
(53)
Level
Intermediate
Updated
Jul 26, 2018
Duration
1h 55m
Table of contents
Description
Course info
Rating
(53)
Level
Intermediate
Updated
Jul 26, 2018
Duration
1h 55m
Description

The Angular CLI provides a great way to build and run Angular applications locally, but what do you do when you need to build Angular in another environment? How do you deploy your Angular application between development, staging/QA, and production environments while ensuring that everything works as planned? In this course, Containerizing Angular Applications with Docker, you'll explore the role that Docker containers can play in simplifying the process of building and deploying Angular applications. First, you'll learn about the role of images and containers, and image registries. Next, you'll discover how to write custom multi-stage Dockerfiles for building Angular code. Then, you'll delve into different server options such as nginx for running your Angular applications efficiently and consistently across environments. Finally, you'll explore how to orchestrate multiple containers using Docker Compose and .yml files. By the end of this course, you'll have the necessary knowledge to efficiently build and run Angular applications across multiple environments by utilizing Docker containers.

About the author
About the author

Dan Wahlin founded Wahlin Consulting, which provides consulting and training services on JavaScript, Angular, Node.js, C#, ASP.NET MVC, Web API, and Docker. He is a Google GDE, Microsoft MVP and Regional Director, and speaks at conferences and user groups around the world.

More from the author
Kubernetes for Developers: Core Concepts
Beginner
4h 35m
Sep 16, 2019
Angular Architecture and Best Practices
Intermediate
5h 22m
Jan 15, 2019
More courses by Dan Wahlin
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Welcome to the Containerizing Angular Applications with Docker course. My name is Dan Wahlin, and I'm a software developer, architect, and trainer specializing in web technologies. I work a lot with Angular and Docker, so this course was especially fun to create, and I'm excited to share it with you. Throughout the course, you'll learn about the role of containers when it comes to containerizing Angular applications. We'll start off by answering the question, why use containers at all? I love working with containers, but with frontend applications there are several viable alternatives that can be used. So we'll answer the question by discussing the benefits that containers bring to the table, as well as some alternatives that exist. From there we'll jump into the role of Dockerfiles and how they can be used to create development and production images for Angular apps. This includes discussing multi-stage Dockerfiles and how they can be used to build an app and create a final image that's as small as possible. We'll also learn about a Docker extension that can be used in VS Code to simplify working with images and containers, and wrap up by showing how to run Angular with other containers by using a tool called Docker Compose. So let's get started and jump right in.