When building a devcontainer from dockerfile it will be useful to expose out additional docker build args that can be used when the container is created.
This can be done either by direct linking of these commands to the build property in the .devcontainer.json or via a catch-all array like build.command_flags: ["--network=host", "--compress"] etc
Example, a dockerfile is installing packages from an internal repository but your machine is on a vpn. Would need to pass --network=host to the build command to ensure that traversal happens correctly on Linux hosts.
When building a devcontainer from dockerfile it will be useful to expose out additional
docker buildargs that can be used when the container is created.This can be done either by direct linking of these commands to the
buildproperty in the.devcontainer.jsonor via a catch-all array likebuild.command_flags: ["--network=host", "--compress"]etcExample, a dockerfile is installing packages from an internal repository but your machine is on a vpn. Would need to pass
--network=hostto the build command to ensure that traversal happens correctly on Linux hosts.