File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,24 +10,42 @@ ARG GOLANG_VERSION=1.11
1010
1111# Install proto3
1212FROM golang:${GOLANG_VERSION} AS proto3
13- RUN apt-get update && apt-get install -y autoconf automake g++ libtool unzip
13+ RUN apt-get update && apt-get install -y \
14+ autoconf \
15+ automake \
16+ g++ \
17+ libtool \
18+ unzip \
19+ --no-install-recommends
20+
1421COPY script/setup/install-protobuf install-protobuf
1522RUN ./install-protobuf
1623
1724# Install runc
1825FROM golang:${GOLANG_VERSION} AS runc
19- RUN apt-get update && apt-get install -y curl libseccomp-dev
26+ RUN apt-get update && apt-get install -y \
27+ curl \
28+ libseccomp-dev \
29+ --no-install-recommends
30+
2031COPY vendor.conf /go/src/github.com/containerd/containerd/vendor.conf
2132COPY script/setup/install-runc install-runc
2233RUN ./install-runc
2334
2435FROM golang:${GOLANG_VERSION} AS dev
25- RUN apt-get update && apt-get install -y btrfs-tools gcc git libseccomp-dev make xfsprogs
36+ RUN apt-get update && apt-get install -y \
37+ btrfs-tools \
38+ gcc \
39+ git \
40+ libseccomp-dev \
41+ make \
42+ xfsprogs \
43+ --no-install-recommends
2644
27- COPY --from=proto3 /usr/local/bin/protoc /usr/local/bin/protoc
45+ COPY --from=proto3 /usr/local/bin/protoc /usr/local/bin/protoc
2846COPY --from=proto3 /usr/local/include/google /usr/local/include/google
47+ COPY --from=runc /usr/local/sbin/runc /usr/local/go/bin/runc
2948
30- COPY --from=runc /usr/local/sbin/runc /usr/local/go/bin/runc
3149COPY . /go/src/github.com/containerd/containerd
3250
3351WORKDIR /go/src/github.com/containerd/containerd
You can’t perform that action at this time.
0 commit comments