Hello,
What is the use of having multiple apps in a project if we cannot specify a build context for these apps ?
For instance, with two apps like below, I would expect a parameter for the “docker build plugin” such as context
:
project = "my-project"
# Labels can be specified for organizational purposes.
# labels = { "foo" = "bar" }
# An application to deploy.
app "web" {
build {
use "docker" {
context = 'web/Dockerfile' # -> suggested syntax
}
# Uncomment below to use a remote docker registry to push your built images.
#
# registry {
# use "docker" {
# image = "registry.example.com/image"
# tag = "latest"
# }
# }
}
# Deploy to Docker
deploy {
use "docker" {}
}
}
# Another application to deploy.
app "backend" {
build {
use "docker" {
context = 'api/Dockerfile' # -> suggested syntax
}
# Uncomment below to use a remote docker registry to push your built images.
#
# registry {
# use "docker" {
# image = "registry.example.com/image"
# tag = "latest"
# }
# }
}
# Deploy to Docker
deploy {
use "docker" {}
}
}
I didn’t find in the documentation such a feature. The only parameters available are buildkit
and disable_entrypoint
.
Is it missing ? Or am i misusing the concepts ?
Thanks for your help
Mathieu