Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (20 loc) · 1.01 KB

Base Docker images

This repository containers Dockerfiles to build some base images, from which other SDP Docker images are built.

Multi-stage build images

The "new" images are intended to be used for multi-stage builds. To build a package, a first stage should build from docker-base-build; this image has compilers, development libraries, a wheel cache of common Python packages, and some scripts to simplify handling pinning dependencies. The final stage should be based on docker-base-runtime, and typically just copies and activates a virtual environment.

Build order

Because Docker does not entirely support diamond inheritance, the hierarchy is docker-base-runtime » docker-base-build » docker-base-gpu-build, and docker-base-gpu-runtime inherits from docker-base-runtime but copies elements from docker-base-gpu-build. Thus, builds must occur in the order

  • docker-base-runtime
  • docker-base-build
  • docker-base-gpu-build
  • docker-base-gpu-runtime