@xcanwin/manyoyo 4.2.5 → 4.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/image-build.js +5 -0
- package/package.json +1 -1
package/lib/image-build.js
CHANGED
|
@@ -301,6 +301,10 @@ function buildBuildkitRunArgs(ctx, dockerfilePath, fullImageTag, imageBuildArgs)
|
|
|
301
301
|
const args = [
|
|
302
302
|
'run', '--rm', '--privileged',
|
|
303
303
|
'--network', `host`,
|
|
304
|
+
'-e', `HTTP_PROXY=$HTTP_PROXY`,
|
|
305
|
+
'-e', `HTTPS_PROXY=$HTTPS_PROXY`,
|
|
306
|
+
'-e', `ALL_PROXY=$ALL_PROXY`,
|
|
307
|
+
'-e', `NO_PROXY=$NO_PROXY`,
|
|
304
308
|
'--volume', `${ctx.rootDir}:/workspace`,
|
|
305
309
|
'--entrypoint', 'buildctl-daemonless.sh',
|
|
306
310
|
'docker.io/moby/buildkit:latest',
|
|
@@ -309,6 +313,7 @@ function buildBuildkitRunArgs(ctx, dockerfilePath, fullImageTag, imageBuildArgs)
|
|
|
309
313
|
'--local', 'context=/workspace',
|
|
310
314
|
'--local', 'dockerfile=/workspace',
|
|
311
315
|
'--opt', `filename=${dockerfileRelativePath}`,
|
|
316
|
+
'--opt', 'network=host',
|
|
312
317
|
'--opt', `build-arg:HTTP_PROXY=$HTTP_PROXY`,
|
|
313
318
|
'--opt', `build-arg:HTTPS_PROXY=$HTTPS_PROXY`,
|
|
314
319
|
'--opt', `build-arg:ALL_PROXY=$ALL_PROXY`,
|