Use the uploaded app source tarball to build a local docker image
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user