Use the uploaded app source tarball to build a local docker image

This commit is contained in:
Johannes Zellner
2026-01-26 20:21:02 +01:00
parent 280f628746
commit b43daf2f08
3 changed files with 55 additions and 1 deletions

View File

@@ -226,7 +226,11 @@ async function downloadImage(manifest) {
if (diskUsage.available < (1024*1024*1024)) throw new BoxError(BoxError.DOCKER_ERROR, `Not enough disk space to pull docker image. available: ${diskUsage.available}`);
await docker.downloadImage(manifest);
if (manifest.dockerImage.indexOf('file:') === 0) {
await docker.buildImage(manifest);
} else {
await docker.downloadImage(manifest);
}
}
async function updateChecklist(app, newChecks, acknowledged = false) {