Skip to content

[Feature] Dockerfile Optimization for OPEA v1.3 #1585

@joshuayao

Description

@joshuayao

Priority

P1-Stopper

OS type

Ubuntu

Hardware type

Xeon-GNR

Running nodes

Single Node

Description

Streamline Docker image builds for GenAIExamples and GenAIComps(stretch goal, targeting v1.4) by introducing hardware-aware base images and update CI/CD pipelines to fit these changes.

Base Images

We need to create specialized base images for each hardware platform to ensure optimal performance and consistency across our containers. Leveraging dedicated base images simplifies image creation, guarantees uniform runtime environments, and takes full advantage of Docker’s layer caching for faster builds and smaller image sizes. We will focus on CPU/common components in v1.3. The required base images are:

Standardizing Dockerfiles in GenAIExamples and GenAIComps(stretch goal, targeting v1.4) with Base Image Inheritance and Multi-Stage Builds

Update all Dockerfiles in the GenAIExamples repositories to extend pre-built base images and leverage multi-stage builds. This initiative will promote consistency, enhance readability, reduce final image sizes, accelerate image builds.

CI/CD Changes

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions