diff --git a/lib/utils/device/deploy.ts b/lib/utils/device/deploy.ts index 54838a73fb..192da9f961 100644 --- a/lib/utils/device/deploy.ts +++ b/lib/utils/device/deploy.ts @@ -528,15 +528,18 @@ async function assignDockerBuildOpts( await Promise.all( buildTasks.map(async (task: BuildTask) => { task.dockerOpts = { - cachefrom: images, - labels: { - 'io.resin.local.image': '1', - 'io.resin.local.service': task.serviceName, - }, - t: generateImageName(task.serviceName), - nocache: opts.nocache, - forcerm: true, - pull: opts.pull, + ...(task.dockerOpts || {}), + ...({ + cachefrom: images, + labels: { + 'io.resin.local.image': '1', + 'io.resin.local.service': task.serviceName, + }, + t: generateImageName(task.serviceName), + nocache: opts.nocache, + forcerm: true, + pull: opts.pull, + }), }; if (task.external) { task.dockerOpts.authconfig = await getAuthConfigObj(