Skip to Content
Docker on Amazon Web Services
book

Docker on Amazon Web Services

by Justin Menga
August 2018
Intermediate to advanced content levelIntermediate to advanced
822 pages
18h 43m
English
Packt Publishing
Content preview from Docker on Amazon Web Services

Building and running the release image

Now that we have completed the configuration of the release stage of the Dockerfile, it's time to build our new released image and verify we can actually run our application successfully.

To build the image, we can use the docker build command, and because the release stage is the last stage of the Dockerfile, you don't need to target a specific stage, as we did previously for the test stage:

> docker build -t todobackend-release .Sending build context to Docker daemon 312.8kBStep 1/22 : FROM alpine AS test ---> 3fd9065eaf02......Step 13/22 : FROM alpine ---> 3fd9065eaf02Step 14/22 : LABEL application=todobackend ---> Using cache ---> afdd1dee07d7Step 15/22 : RUN apk add --no-cache python3 mariadb-client ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Docker Quick Start Guide

Docker Quick Start Guide

Earl Waud
Docker in Motion

Docker in Motion

Peter Fisher

Publisher Resources

ISBN: 9781788626507Supplemental Content