You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.2 KiB

  1. # vim:ft=Dockerfile
  2. FROM debian:sid
  3. RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
  4. # Paper over occasional network flakiness of some mirrors.
  5. RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
  6. # NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com
  7. # instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357
  8. # kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s
  9. # (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
  10. # Install mk-build-deps (for installing the i3 build dependencies),
  11. # clang and clang-format-3.8 (for checking formatting and building with clang),
  12. # lintian (for checking spelling errors),
  13. # test suite dependencies (for running tests)
  14. RUN apt-get update && \
  15. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  16. build-essential clang git autoconf automake libxcb-randr0-dev pkg-config libpam0g-dev \
  17. libcairo2-dev libxcb1-dev libxcb-dpms0-dev libxcb-image0-dev libxcb-util0-dev \
  18. libxcb-xrm-dev libev-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev \
  19. libxkbcommon-x11-dev libxcb-composite0-dev && \
  20. rm -rf /var/lib/apt/lists/*
  21. WORKDIR /usr/src