1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-18 08:26:38 +02:00

fix: close dockerfile (#2703)

This commit is contained in:
guangwu 2024-04-17 14:45:39 +08:00 committed by GitHub
parent b1e58a1fe8
commit 186b8351dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,7 @@ func (d *Builder) Build(s *build.Source) (*build.Package, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
defer f.Close()
// read docker file // read docker file
by, err := io.ReadAll(f) by, err := io.ReadAll(f)
if err != nil { if err != nil {