[CRIU] [PATCH 1/4] Dockerfile.alpine: add git and coretuils

Kir Kolyshkin kir at openvz.org
Tue Oct 25 21:46:37 PDT 2016


git is needed as the top-level Makefile calls it. Strictly speaking
git is not required to build CRIU, but it's better to have it than
to see some error messages.

coreutils is needed for nproc utility which is called from Dockerfile:

	make -j $(nproc)

Before this patch, it was equivalent to "make -j" (plus an error
message) which is not the best thing to do.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 scripts/build/Dockerfile.alpine | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/build/Dockerfile.alpine b/scripts/build/Dockerfile.alpine
index f969b12..ac2c4d3 100644
--- a/scripts/build/Dockerfile.alpine
+++ b/scripts/build/Dockerfile.alpine
@@ -1,6 +1,8 @@
 FROM alpine:3.4
 RUN apk update && apk add \
                 build-base \
+                coreutils \
+                git \
                 protobuf-c-dev \
                 protobuf-dev \
                 python \
-- 
2.7.4



More information about the CRIU mailing list