blob: dcdd840545480d98aef153d2c609e776b37490f3 [file] [log] [blame]
Philipp Schrader49902d42022-10-29 14:09:18 -07001FROM debian:bullseye
2
3RUN apt-get update
4RUN apt-get install -y \
5 curl \
6 clang-13
7
8# Get latest patchelf for auditwheel.
9RUN curl -L https://github.com/NixOS/patchelf/releases/download/0.15.0/patchelf-0.15.0-x86_64.tar.gz > /tmp/patchelf.tar.gz \
10 && tar -xaf /tmp/patchelf.tar.gz -C /usr \
11 && rm -f /tmp/patchelf.tar.gz
12
13# Get the same Python that we're using for for actually running Python code.
14RUN mkdir /opt/python/
15RUN curl -SL \
16 https://github.com/indygreg/python-build-standalone/releases/download/20220802/cpython-3.9.13+20220802-x86_64-unknown-linux-gnu-install_only.tar.gz \
17 | tar -xz -C /opt/
18
19# Install dependencies of the pip packages that we're compiling.
20RUN apt-get install -y \
21 libcairo2-dev \
22 libgirepository1.0-dev \
23 libglib2.0-0 \
24 libgtk-3-dev
25
26# Make some symlinks to satisfy assumptions some of the installer scripts (e.g.
27# setup.py files) make about the system.
28RUN ln -s /opt/python/ /install
29RUN ln -s /usr/bin/clang-13 /usr/bin/clang && \
30 ln -s /usr/bin/clang++-13 /usr/bin/clang++