4 RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
5 # Paper over occasional network flakiness of some mirrors.
6 RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
8 # NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com
9 # instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357
10 # kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s
11 # (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
13 # Install mk-build-deps (for installing the i3 build dependencies),
14 # clang and clang-format-3.5 (for checking formatting and building with clang),
15 # lintian (for checking spelling errors),
16 # test suite dependencies (for running tests)
17 RUN apt-get update && \
18 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
19 dpkg-dev devscripts git equivs \
20 clang clang-format-3.5 \
22 libanyevent-perl libanyevent-i3-perl libextutils-pkgconfig-perl xcb-proto cpanminus xvfb xserver-xephyr xauth libinline-perl libinline-c-perl libxml-simple-perl libmouse-perl libmousex-nativetraits-perl libextutils-depends-perl perl-modules libtest-deep-perl libtest-exception-perl libxml-parser-perl libtest-simple-perl libtest-fatal-perl libdata-dump-perl libtest-differences-perl libxml-tokeparser-perl libipc-run-perl libxcb-xtest0-dev libx11-xcb-perl libanyevent-i3-perl && \
23 rm -rf /var/lib/apt/lists/*
25 # Install i3 build dependencies.
26 COPY debian/control /usr/src/i3-debian-packaging/control
27 RUN apt-get update && \
28 DEBIAN_FRONTEND=noninteractive mk-build-deps --install --remove --tool 'apt-get --no-install-recommends -y' /usr/src/i3-debian-packaging/control && \
29 rm -rf /var/lib/apt/lists/*