TOOL » VIRTUAL_ENVIRONMENT » DOCKER_COMPOSE

Build

Usage

shell
docker-compose build OPTIONS SERVICE
OptionDescription
--no-cacheDo not use cache when building the image.
--pullAlways attempt to pull a newer version of the image.

Configuration

When Dockerfile and the context are in the same directory:

yml
build: .

When setting custom dockerfile and context:

yml
build:
  context: .
  dockerfile: dockerfiles/Dockerfile_app