Skip to content

Commit a07e12c

Browse files
committed
contrib: Dockerfile: reformat, and use --no-install-recommends
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent ba9e1ea commit a07e12c

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

contrib/Dockerfile.test

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,42 @@ ARG GOLANG_VERSION=1.11
1010

1111
# Install proto3
1212
FROM 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+
1421
COPY script/setup/install-protobuf install-protobuf
1522
RUN ./install-protobuf
1623

1724
# Install runc
1825
FROM 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+
2031
COPY vendor.conf /go/src/github.com/containerd/containerd/vendor.conf
2132
COPY script/setup/install-runc install-runc
2233
RUN ./install-runc
2334

2435
FROM 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
2846
COPY --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
3149
COPY . /go/src/github.com/containerd/containerd
3250

3351
WORKDIR /go/src/github.com/containerd/containerd

0 commit comments

Comments
 (0)