github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/Dockerfile (about) 1 FROM golang:1.7.1 2 3 # libseccomp in jessie is not _quite_ new enough -- need backports version 4 RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list 5 6 RUN apt-get update && apt-get install -y \ 7 build-essential \ 8 curl \ 9 gawk \ 10 iptables \ 11 jq \ 12 pkg-config \ 13 libaio-dev \ 14 libcap-dev \ 15 libprotobuf-dev \ 16 libprotobuf-c0-dev \ 17 libseccomp2/jessie-backports \ 18 libseccomp-dev/jessie-backports \ 19 protobuf-c-compiler \ 20 protobuf-compiler \ 21 python-minimal \ 22 --no-install-recommends 23 24 # install bats 25 RUN cd /tmp \ 26 && git clone https://github.com/sstephenson/bats.git \ 27 && cd bats \ 28 && git reset --hard 03608115df2071fff4eaaff1605768c275e5f81f \ 29 && ./install.sh /usr/local \ 30 && rm -rf /tmp/bats 31 32 # install criu 33 ENV CRIU_VERSION 1.7 34 RUN mkdir -p /usr/src/criu \ 35 && curl -sSL https://github.com/xemul/criu/archive/v${CRIU_VERSION}.tar.gz | tar -v -C /usr/src/criu/ -xz --strip-components=1 \ 36 && cd /usr/src/criu \ 37 && make install-criu 38 39 # setup a playground for us to spawn containers in 40 ENV ROOTFS /busybox 41 RUN mkdir -p ${ROOTFS} \ 42 && curl -o- -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -C ${ROOTFS} -xf - 43 44 COPY script/tmpmount / 45 WORKDIR /go/src/github.com/opencontainers/runc 46 ENTRYPOINT ["/tmpmount"] 47 48 ADD . /go/src/github.com/opencontainers/runc