From fff48ed9fc94061558317513308b3000cd6cb3df Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Sun, 17 May 2026 16:33:32 +0530 Subject: [PATCH 1/3] Add go install command --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 904bae06..328c1735 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,11 @@ powershell -c "irm wpm.so/install.ps1|iex" docker pull trywpm/cli ``` +**Go** +``` +go install go.wpm.so/cli/cmd/wpm@latest +``` + **Build from Source** ```bash git clone git@github.com:trywpm/cli.git wpm From 4416002f6b83d843e4118a94fd74f69a42263729 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Sun, 17 May 2026 16:51:48 +0530 Subject: [PATCH 2/3] Update target for image-cross builds --- docker-bake.hcl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-bake.hcl b/docker-bake.hcl index c83ede0c..f12de401 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -38,10 +38,10 @@ group "default" { } target "binary" { - inherits = ["_common"] target = "binary" - platforms = ["local"] output = ["build"] + inherits = ["_common"] + platforms = ["local"] args = { VERSION = VERSION PACKAGER_NAME = PACKAGER_NAME @@ -53,6 +53,7 @@ target "binary-cross" { } target "image-cross" { - inherits = ["meta-helper", "binary-cross"] + target = "image" output = ["type=image"] + inherits = ["meta-helper", "binary-cross"] } From 08b32bc8bcc6761249e24cac4f5dd99cd81bbe5b Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Sun, 17 May 2026 16:52:20 +0530 Subject: [PATCH 3/3] Add binary target --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a165f155..c70ea7d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,6 +53,8 @@ RUN --mount=type=bind,target=.,ro \ FROM scratch AS binary COPY --from=build /out . + +FROM binary AS image COPY --from=build-base-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt ENV PATH="/" WORKDIR /app