criu/scripts/build/Dockerfile.alpine
Radostin Stoyanov e3b694392d scripts/build: drop obsolete ENV1 variable
The ENV1 variable was first introduced with commit
7290de5 (travis: enable ccache for docker/qemu builds)
and it is not used anymore.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2021-09-03 10:31:00 -07:00

50 lines
756 B
Text

FROM alpine
ARG CC=gcc
RUN apk update && apk add \
$CC \
bash \
build-base \
coreutils \
git \
gnutls-dev \
libaio-dev \
libcap-dev \
libnet-dev \
libnl3-dev \
nftables \
nftables-dev \
pkgconfig \
protobuf-c-dev \
protobuf-dev \
py3-pip \
py3-protobuf \
python3 \
sudo
COPY . /criu
WORKDIR /criu
RUN make mrproper && date && make -j $(nproc) CC="$CC" && date
RUN apk add \
ip6tables \
iptables \
nftables \
iproute2 \
tar \
bash \
go \
e2fsprogs \
py-yaml \
py3-flake8 \
asciidoctor
# The rpc test cases are running as user #1000, let's add the user
RUN adduser -u 1000 -D test
RUN pip3 install junit_xml
# For zdtm we need an unversioned python binary
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN make -C test/zdtm