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 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 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"] }