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
+3
View File
@@ -206,6 +206,9 @@ async function install(req, res, next) {
data.appStoreId = result.appStoreId;
data.manifest = result.manifest;
// if we have a source archive upload, craft a custom docker image URI for later
if (req.files.sourceArchive?.path) data.manifest.dockerImage = 'file:' + req.files.sourceArchive.path;
[error, result] = await safe(apps.install(data, AuditSource.fromRequest(req)));
if (error) return next(BoxError.toHttpError(error));