mirror of
https://github.com/caprover/caprover
synced 2026-10-06 05:11:27 +00:00
updated
This commit is contained in:
1 parent
95b578d48c
commit
64f751e097
1 file changed
+13
-5
+13
-5
@@ -228,7 +228,7 @@ class DockerApi {
|
||||
newVersionNumber: number,
|
||||
tarballFilePath: string,
|
||||
buildLogs: BuildLog,
|
||||
buildargs: IAppEnvVar[]
|
||||
envVars: IAppEnvVar[]
|
||||
) {
|
||||
const self = this
|
||||
|
||||
@@ -236,10 +236,18 @@ class DockerApi {
|
||||
|
||||
Logger.d('Building docker image. This might take a few minutes...')
|
||||
|
||||
return self.dockerode
|
||||
.buildImage(tarballFilePath, {
|
||||
t: imageName,
|
||||
buildargs: buildargs,
|
||||
return Promise.resolve()
|
||||
.then(function() {
|
||||
const buildargs: IHashMapGeneric<string> = {}
|
||||
|
||||
envVars.forEach(env => {
|
||||
buildargs[env.key] = env.value
|
||||
})
|
||||
|
||||
return self.dockerode.buildImage(tarballFilePath, {
|
||||
t: imageName,
|
||||
buildargs: buildargs,
|
||||
})
|
||||
})
|
||||
.then(function(stream) {
|
||||
return new Promise<void>(function(resolve, reject) {
|
||||
|
||||
Reference in new issue
Block a user