From 94e5662f67871636b11ff019bcd18a1ce8e1e601 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Fri, 19 Jul 2024 15:10:16 +0300 Subject: [PATCH] document how to build under alpine Signed-off-by: Avi Deitcher --- docs/alpine.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/alpine.md diff --git a/docs/alpine.md b/docs/alpine.md new file mode 100644 index 00000000000..384888e520d --- /dev/null +++ b/docs/alpine.md @@ -0,0 +1,19 @@ +# Building runc under alpine linux + +To build under alpine linux, whether booted alpine or in a container: + +```sh +apk add make gcc libseccomp-dev musl-dev linux-headers git +# statically linked +make static +# dynamically linked +make runc +``` + +If you have issues with seccomp, you can disable it with: + +```sh +make static BUILDTAGS= +# or +make runc BUILDTAGS= +```