Practical Docker with Python by Sathyajith Bhat

Practical Docker with Python by Sathyajith Bhat

Author:Sathyajith Bhat
Language: eng
Format: epub, pdf
ISBN: 9781484237847
Publisher: Apress


The image was built successfully. Let’s see the size of the image:

docker images sathyabhat:base-build

REPOSITORY TAG IMAGE ID CREATED SIZE

sathyabhat base-build ed26b55221f4 32 minutes ago 698MB

The Docker image sits at a fairly hefty 698MB even though you didn’t add any of the application code, just a dependency. Let’s rewrite it to a multi-stage build.

Building the Docker Image Using Multi-Stage Build

Dockerfile Listing

FROM python:3 as python-base

COPY requirements.txt .

RUN pip install -r requirements.txt



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.