@vercel/container 25.0.0 → 25.0.1
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/dist/index.js +1 -21
- package/dist/schedules-command-dispatcher +0 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4274,26 +4274,6 @@ async function buildAndPushImage(params) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
);
|
|
4276
4276
|
}
|
|
4277
|
-
function resolveDaemonContextDir(options, daemon) {
|
|
4278
|
-
const contextDir = import_node_path23.default.join(options.workPath, daemon.root);
|
|
4279
|
-
const real = (p) => {
|
|
4280
|
-
try {
|
|
4281
|
-
return (0, import_node_fs17.realpathSync)(p);
|
|
4282
|
-
} catch {
|
|
4283
|
-
return import_node_path23.default.resolve(p);
|
|
4284
|
-
}
|
|
4285
|
-
};
|
|
4286
|
-
const relative3 = import_node_path23.default.relative(
|
|
4287
|
-
real(options.repoRootPath || options.workPath),
|
|
4288
|
-
real(contextDir)
|
|
4289
|
-
);
|
|
4290
|
-
if (import_node_path23.default.isAbsolute(relative3) || relative3 === ".." || relative3.startsWith(`..${import_node_path23.default.sep}`)) {
|
|
4291
|
-
throw new Error(
|
|
4292
|
-
`Daemon "${daemon.name}" has root "${daemon.root}", which is outside the repository.`
|
|
4293
|
-
);
|
|
4294
|
-
}
|
|
4295
|
-
return contextDir;
|
|
4296
|
-
}
|
|
4297
4277
|
async function resolveImageHandler(options, source, buildahClient, span, schedulesCommand) {
|
|
4298
4278
|
const { config, meta } = options;
|
|
4299
4279
|
const { daemon } = config;
|
|
@@ -4367,7 +4347,7 @@ async function resolveImageHandler(options, source, buildahClient, span, schedul
|
|
|
4367
4347
|
options.service?.name ?? import_node_path23.default.basename(dockerfileRel).split(".")[0]
|
|
4368
4348
|
);
|
|
4369
4349
|
const tag = resolveImageTag();
|
|
4370
|
-
const contextDir = daemon
|
|
4350
|
+
const contextDir = daemon || schedulesCommand || options.service ? options.workPath : import_node_path23.default.dirname(dockerfilePath);
|
|
4371
4351
|
const contextIsRoot = Boolean(daemon || schedulesCommand || options.service) || import_node_path23.default.dirname(import_node_path23.default.normalize(dockerfileRel)) === ".";
|
|
4372
4352
|
const buildArgs = buildArgsFromEnv(meta?.buildEnv);
|
|
4373
4353
|
span?.setAttributes({
|
|
Binary file
|