A Tale of Two (Docker Multi-Stage Build) Layersby@patrickleet
22,191 reads

A Tale of Two (Docker Multi-Stage Build) Layers

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Docker is essentially an isolated environment for your code to run in. Just like you would provision a server, you provision a docker container. The Dockerfile is also a great place to run our unit tests, which is why I’ve decided to write the tests first. With tests in place, the next piece is getting our project ready for deployment. Using a multi-stage build is a good security measure as all build tooling is stripped out of the final layer of the Dockerfile.

Company Mentioned

Mention Thumbnail
featured image - A Tale of Two (Docker Multi-Stage Build) Layers
Patrick Lee Scott HackerNoon profile picture

@patrickleet

Patrick Lee Scott

HackerNoon's first contributing tech writer of the year.


Receive Stories from @patrickleet

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!