1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-13 17:24:44 +08:00

fix: 解决镜像构建输出部分丢失的问题 (#310)

fix: 解决镜像构建输出部分丢失的问题
This commit is contained in:
1Panel-bot 2023-03-20 11:34:09 +08:00 committed by GitHub
parent 13679ff301
commit 1095aa2b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ func (u *ImageService) ImageBuild(req dto.ImageBuild) (string, error) {
return
}
global.LOG.Infof("build image %s successful!", req.Name)
_, _ = io.Copy(file, res.Body)
_, _ = file.Write(body)
_, _ = file.WriteString("image build successful!")
}()