Images
The images
tag allows rudimentary specification of how to build the Docker images needed for your deployments.
Example:
images:
- name: frontend
dockerfile: ./src/react/Dockerfile
context: ./src/react
buildargs:
svc_name: frontend
- name: backend
dockerfile: ./src/flask/Dockerfile
context: ./src/flask
buildargs:
svc_name: backend
By default the "main" image will be built, assuming a "Dockerfile", using the root
Key
Description
images[].name
The name of the image. Used as part of the image tag
images[].dockerfile
The location of the Dockerfile to build, relative to the repository root.
images[].context
The docker build context, relative to the repository root
images[].buildargs
A set of arguments which are passed to the docker build
Last updated
Was this helpful?