From 3a622521c4a94dcf8b3359c60a5d3e411910da14 Mon Sep 17 00:00:00 2001 From: guangwu Date: Wed, 17 Apr 2024 14:40:46 +0800 Subject: [PATCH] fix: close dockerfile --- 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 {