liveBook · Manning

Archive pattern

As explained in Learn Docker in a Month of Lunches, Second Edition

The archive pattern is a deployment pattern in which an application archive is downloaded, verified, extracted, and copied into a runtime image.

The archive pattern packages an application by downloading an archive during the image build, verifying its hash, extracting it, and copying only the verified contents into the runtime image. section 13.2

A typical implementation separates build-time installation from runtime execution:

  • Use a Windows Server Core installer stage with PowerShell, curl, and archive extraction tools. section 13.2

Build and inspect the container

Build the ASP.NET image, run it in the background with port 8084 mapped to port 80, and inspect its Windows processes with docker top. section 13.2

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Demonstrates a complete download, hash check, extraction, and multi-stage copy, while deferring detailed PowerShell explanation.
Examples
Uses an ASP.NET archive, SHA-256 verification files, Windows Docker build commands, and docker top process output.
What you can do after
Builds and runs a verified ASP.NET application image, then inspects the processes running inside its Windows container.
How it connects
Connects Dockerfile multi-stage builds with Windows Server Core, ASP.NET, filesystem deployment, and container process inspection.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.