Preparing your Microservice for Production

Although we’ve primarily been showing off local volume mounting for development and testing purposes, most customers don’t want to do local volume mounting in production, and instead want to copy all source code and dependencies directly into the container. This enables more isolation simplifies release management so that deployment is as easy as stopping and starting containers without having to manually sync or replace source code on the host virtual machine. To prepare your microservice for production, there are a set of common steps, you’ll take:

Add any Dependencies

You’ll want to ensure that all required packages, tools, and dependencies that aren’t already in the base image are copied or downloaded ...

Get Microservices with Docker on Microsoft Azure™ (includes Content Update Program) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.