Skip to content

Specify both image name and build path #2092

@bfirsh

Description

@bfirsh

It should be possible to specify the name of an image, and the path it can be built from. Like so:

web: image: hyperglobalmegacorp/web build: . 

This lets you do various things:

  1. Bootstrap an environment by pulling pre-built master images from the Hub so you don't have to build them locally when setting up an initial environment (docker-compose pull; docker-compose up)
  2. Lets you easily push images that you have built
  3. Lets you customise the name of the built image
  4. Makes it easier to use the same Compose file in development and production (production can pull images in advance or ignore build)

Related: #213

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions