File: Dockerfile

package info (click to toggle)
python-i3ipc 2.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 580 kB
  • sloc: python: 2,968; makefile: 222; sh: 4
file content (31 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM ubuntu:19.10

WORKDIR /app

RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    build-essential git automake autotools-dev libev-dev libxcb1-dev \
    libxcb-util-dev ca-certificates libxkbcommon-dev libxkbcommon-x11-dev \
    libyajl-dev libstartup-notification0-dev libxcb-xinerama0-dev \
    libxcb-randr0-dev libxcb-shape0-dev libxcb-cursor-dev libxcb-keysyms1-dev \
    libxcb-icccm4-dev libxcb-xrm-dev libpcre3-dev libpango1.0-dev \
    libpangocairo-1.0-0 xvfb python3-pip && \
    rm -rf /var/lib/apt/lists/*

RUN pip3 install python-xlib pytest pytest-asyncio pytest-timeout

RUN git clone https://github.com/i3/i3 && \
    cd ./i3 && \
    git checkout cf505ea && \
    autoreconf -fi && \
    ./configure --prefix=/usr && \
    cd ./x86_64-pc-linux-gnu && \
    make -j8 && \
    make install

ADD . /app

CMD ["./run-tests.py"]