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

Related issues

leiblix picture leiblix  路  3Comments

29e7e280-0d1c-4bba-98fe-f7cd3ca7500a picture 29e7e280-0d1c-4bba-98fe-f7cd3ca7500a  路  3Comments

squeaky-pl picture squeaky-pl  路  3Comments

CrimsonGlory picture CrimsonGlory  路  3Comments

saulshanabrook picture saulshanabrook  路  3Comments