Question from the Docker compose test

What is the purpose of the `target` directive in a docker-compose.yml file?

Medium

Examine the docker-compose.yml file below:

services:
  api:
    build:
      context: ./api
      target: prod

What is the purpose of the target directive in this file?

Author: AxelStatus: PublishedQuestion passed 74 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!