]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | # Licensed to the Apache Software Foundation (ASF) under one |
2 | # or more contributor license agreements. See the NOTICE file | |
3 | # distributed with this work for additional information | |
4 | # regarding copyright ownership. The ASF licenses this file | |
5 | # to you under the Apache License, Version 2.0 (the | |
6 | # "License"); you may not use this file except in compliance | |
7 | # with the License. You may obtain a copy of the License at | |
8 | # | |
9 | # http://www.apache.org/licenses/LICENSE-2.0 | |
10 | # | |
11 | # Unless required by applicable law or agreed to in writing, | |
12 | # software distributed under the License is distributed on an | |
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
14 | # KIND, either express or implied. See the License for the | |
15 | # specific language governing permissions and limitations | |
16 | # under the License. | |
17 | ||
18 | ARG FROM=debian:bullseye | |
19 | FROM ${FROM} | |
20 | ||
21 | RUN \ | |
22 | echo "debconf debconf/frontend select Noninteractive" | \ | |
23 | debconf-set-selections | |
24 | ||
25 | RUN \ | |
26 | echo 'APT::Install-Recommends "false";' > \ | |
27 | /etc/apt/apt.conf.d/disable-install-recommends | |
28 | ||
29 | RUN sed -i'' -e 's/main$/main contrib non-free/g' /etc/apt/sources.list | |
30 | ||
31 | ARG DEBUG | |
32 | RUN \ | |
33 | quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ | |
34 | apt update ${quiet} && \ | |
35 | apt install -y -V ${quiet} \ | |
36 | build-essential \ | |
37 | ccache \ | |
38 | clang \ | |
39 | cmake \ | |
40 | debhelper \ | |
41 | devscripts \ | |
42 | git \ | |
43 | gtk-doc-tools \ | |
44 | libboost-filesystem-dev \ | |
45 | libboost-system-dev \ | |
46 | libbrotli-dev \ | |
47 | libbz2-dev \ | |
48 | libc-ares-dev \ | |
49 | libcurl4-openssl-dev \ | |
50 | libgirepository1.0-dev \ | |
51 | libglib2.0-doc \ | |
52 | libgmock-dev \ | |
53 | libgoogle-glog-dev \ | |
54 | libgrpc++-dev \ | |
55 | libgtest-dev \ | |
56 | liblz4-dev \ | |
57 | libprotoc-dev \ | |
58 | libprotobuf-dev \ | |
59 | libre2-dev \ | |
60 | libsnappy-dev \ | |
61 | libssl-dev \ | |
62 | libthrift-dev \ | |
63 | libutf8proc-dev \ | |
64 | libzstd-dev \ | |
65 | llvm-dev \ | |
66 | lsb-release \ | |
67 | ninja-build \ | |
68 | pkg-config \ | |
69 | protobuf-compiler-grpc \ | |
70 | python3-dev \ | |
71 | python3-numpy \ | |
72 | python3-pip \ | |
73 | rapidjson-dev \ | |
74 | tzdata \ | |
75 | zlib1g-dev && \ | |
76 | if apt list | grep '^nvidia-cuda-toolkit/'; then \ | |
77 | apt install -y -V ${quiet} nvidia-cuda-toolkit; \ | |
78 | fi && \ | |
79 | pip3 install --upgrade meson && \ | |
80 | ln -s /usr/local/bin/meson /usr/bin/ && \ | |
81 | apt clean && \ | |
82 | rm -rf /var/lib/apt/lists/* |