Build multiple images with Docker Compose?

Viewed 3630

I have a repository which builds three different images:

  1. powerpy-base
  2. powerpy-web
  3. powerpy-worker

Both powerpy-web and powerpy-worker inherit from powerpy-base using the FROM keyword in their Dockerfile.

I'm using Docker Compose in the project to run a Redis and RabbitMQ container. Is there a way for me to tell Docker Compose that I'd like to build the base image first and then the web and worker images?

2 Answers
Related