Skip to content

Commit a9b0858

Browse files
committed
fix(vllm-metal): restore execute permission on bundled python3 after extraction
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
1 parent 9f64701 commit a9b0858

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/inference/backends/vllmmetal/vllmmetal.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ func (v *vllmMetal) downloadAndExtract(ctx context.Context, _ *http.Client) erro
169169
return fmt.Errorf("failed to copy to install dir: %w", err)
170170
}
171171

172+
// Docker COPY strips execute permissions in OCI image layers.
173+
// Restore the execute bit on the bundled Python binary.
174+
if err := os.Chmod(filepath.Join(v.installDir, "bin", "python3"), 0755); err != nil {
175+
return fmt.Errorf("failed to make python3 executable: %w", err)
176+
}
177+
172178
v.log.Infof("vllm-metal %s installed successfully", vllmMetalVersion)
173179
return nil
174180
}

0 commit comments

Comments
 (0)