From 186b8351dcb529eb229d80faa8f27ebe3add89ce Mon Sep 17 00:00:00 2001 From: guangwu Date: Wed, 17 Apr 2024 14:45:39 +0800 Subject: [PATCH] fix: close dockerfile (#2703) --- runtime/local/build/docker/docker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/local/build/docker/docker.go b/runtime/local/build/docker/docker.go index e207e90b41..e6d16df0a3 100644 --- a/runtime/local/build/docker/docker.go +++ b/runtime/local/build/docker/docker.go @@ -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 {