Compose: Setting order of build

Created on 1 Sep 2017  路  2Comments  路  Source: docker/compose

I would like to set order/priority of services to be built. depends_on is not solving my problem because some services do not run but their build order matters.

arebuild kinfeature

Most helpful comment

@shin- I'd have the same request, since I'd like to define builds where b uses FROM a:latest, but b gets build before a.

General question: How is the build order decided?

All 2 comments

Hi @umrashrf,

This is outside the scope of what Compose sets out to do. The best approach would be to write an external script calling build on services in the order you want them.

@shin- I'd have the same request, since I'd like to define builds where b uses FROM a:latest, but b gets build before a.

General question: How is the build order decided?

Was this page helpful?
0 / 5 - 0 ratings