mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-03 15:23:04 +00:00
As it should be built anyway - it will not increase build time significally. Cc: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
31 lines
798 B
Cheetah
31 lines
798 B
Cheetah
ARG CC=gcc
|
|
|
|
RUN apt-get clean
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y \
|
|
build-essential \
|
|
protobuf-c-compiler \
|
|
libprotobuf-c0-dev \
|
|
libprotobuf-dev \
|
|
bsdmainutils \
|
|
protobuf-compiler \
|
|
python-minimal \
|
|
libaio-dev \
|
|
libcap-dev \
|
|
iptables \
|
|
libnl-3-dev \
|
|
libselinux-dev \
|
|
pkg-config \
|
|
git-core \
|
|
$CC
|
|
|
|
COPY . /criu
|
|
WORKDIR /criu
|
|
|
|
RUN make mrproper
|
|
RUN make -j $(nproc) CC=$CC criu/parasite-syscall.o
|
|
RUN make -j $(nproc) CC=$CC
|
|
RUN make mrproper
|
|
RUN bash -c 'CLEAN="$(git clean -ndx --exclude=scripts/build)"; echo "${CLEAN}"; test -z "${CLEAN}"; exit $?'
|