From c21258b70ed91ab5ff8b1d345123fed1011a49c9 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Fri, 20 Mar 2020 10:55:23 +0100 Subject: Add podman static build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’re now able to build a static podman binary based on a custom nix derivation. This is integrated in cirrus as well, whereas a later target would be to provide a self-contained static binary bundle which can be installed on any Linux x64-bit system. Fixes: https://github.com/containers/libpod/issues/1399 Signed-off-by: Sascha Grunert --- Containerfile-nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Containerfile-nix (limited to 'Containerfile-nix') diff --git a/Containerfile-nix b/Containerfile-nix new file mode 100644 index 000000000..5eea71af6 --- /dev/null +++ b/Containerfile-nix @@ -0,0 +1,10 @@ +# vim: set syntax=dockerfile: +FROM nixos/nix:latest + +RUN apk add --no-cache bash git + +COPY . /work +WORKDIR work/nix +RUN nix-build +WORKDIR / +RUN rm -rf work -- cgit v1.2.3-54-g00ecf