Docker Community Forums

Share and learn in the Docker community.

Duplication among Dockerfiles

build
docker

(Daeyeonjoo) #1

Hello everyone!
I am installing OpenStack Keystone now.
For standalone Keystone needs three components: mysql, python, and apache2.

Absolutely I can’t pick all of them to the base, I made python as a base image, and others were inserted as RUN statements for installing mysql and apache2.

I think that the RUN statements are duplication because all the three components exist on Docker Public Registry.

Is there any good solution or proper way to reuse the existing external Dockerfile???