Philipp Schrader | 49902d4 | 2022-10-29 14:09:18 -0700 | [diff] [blame] | 1 | FROM debian:bullseye |
| 2 | |
| 3 | RUN apt-get update |
| 4 | RUN apt-get install -y \ |
| 5 | curl \ |
| 6 | clang-13 |
| 7 | |
| 8 | # Get latest patchelf for auditwheel. |
| 9 | RUN 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. |
| 14 | RUN mkdir /opt/python/ |
| 15 | RUN 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. |
| 20 | RUN 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. |
| 28 | RUN ln -s /opt/python/ /install |
| 29 | RUN ln -s /usr/bin/clang-13 /usr/bin/clang && \ |
| 30 | ln -s /usr/bin/clang++-13 /usr/bin/clang++ |