GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.23k stars 1.4k forks source link

Build Multiple Dockerfile from same build context #3217

Open bkrajendra opened 1 week ago

bkrajendra commented 1 week ago

I have docker context with multiple Dockerfile in the directory. I have created a configmap of directory containing dockerfiles and mounted it to the /workspace folder in kaniko:

Dockerfile-base-service
Dockerfile-ui-service
Dockerfile-data-service

I am using Kubernetes job to run the kaniko container .

Is it possible to build all of the Dockerfile in single kaniko job/instance?