We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23fc76a commit 944e5e6Copy full SHA for 944e5e6
pkg/api/api.go
@@ -165,7 +165,7 @@ type BuildOptions struct {
165
func (o BuildOptions) Apply(project *types.Project) error {
166
platform := project.Environment["DOCKER_DEFAULT_PLATFORM"]
167
for name, service := range project.Services {
168
- if service.Image == "" && service.Build == nil {
+ if service.Provider == nil && service.Image == "" && service.Build == nil {
169
return fmt.Errorf("invalid service %q. Must specify either image or build", name)
170
}
171
0 commit comments