Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Multistage Scratch Non-Privileged

This demonstrates a multi-stage docker build to create a scratch container, running as a non-privileged user.

The aim is to create a tiny image, with no exta files, and only one non-privileged, nobody user, with the ability to use SSL.

Usage

To build the image:

docker build --tag multistage .

To run the image:

docker run -it multistage

To make a request:

curl localhost:7000/google

Demo

If you'd like to walk through the steps that go into creating this image, there is a demonstration repository here. The built image can be found on Docker Hub and there's an accompanying blog post too.

About

Multi-stage Docker build of a minimal container.

Resources

License

Releases

No releases published

Packages

No packages published