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 69 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!