mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
add support for build.network and build.extrahosts
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
f3171e90cf
commit
aa89fa5443
@ -278,6 +278,8 @@ func (s *composeService) toBuildOptions(project *types.Project, service types.Se
|
|||||||
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
Exports: []bclient.ExportEntry{{Type: "image", Attrs: map[string]string{}}},
|
||||||
Platforms: plats,
|
Platforms: plats,
|
||||||
Labels: service.Build.Labels,
|
Labels: service.Build.Labels,
|
||||||
|
NetworkMode: service.Build.Network,
|
||||||
|
ExtraHosts: service.Build.ExtraHosts,
|
||||||
Session: []session.Attachable{
|
Session: []session.Attachable{
|
||||||
authprovider.NewDockerAuthProvider(os.Stderr),
|
authprovider.NewDockerAuthProvider(os.Stderr),
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user