1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +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

View File

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