|
| 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=ubuntu:resolute |
| 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 | +ARG DEBUG |
| 30 | +RUN \ |
| 31 | + quiet=$([ "${DEBUG}" = "yes" ] || echo "-qq") && \ |
| 32 | + apt update ${quiet} && \ |
| 33 | + apt install -y -V ${quiet} \ |
| 34 | + build-essential \ |
| 35 | + clang \ |
| 36 | + clang-tools \ |
| 37 | + cmake \ |
| 38 | + debhelper \ |
| 39 | + devscripts \ |
| 40 | + gi-docgen \ |
| 41 | + git \ |
| 42 | + libboost-filesystem-dev \ |
| 43 | + libboost-system-dev \ |
| 44 | + libbrotli-dev \ |
| 45 | + libbz2-dev \ |
| 46 | + libc-ares-dev \ |
| 47 | + libcurl4-openssl-dev \ |
| 48 | + libgirepository1.0-dev \ |
| 49 | + libglib2.0-doc \ |
| 50 | + libgmock-dev \ |
| 51 | + libgoogle-glog-dev \ |
| 52 | + libgrpc++-dev \ |
| 53 | + libgtest-dev \ |
| 54 | + liblz4-dev \ |
| 55 | + libprotobuf-dev \ |
| 56 | + libprotoc-dev \ |
| 57 | + libre2-dev \ |
| 58 | + libsnappy-dev \ |
| 59 | + libssl-dev \ |
| 60 | + libthrift-dev \ |
| 61 | + libutf8proc-dev \ |
| 62 | + libxxhash-dev \ |
| 63 | + libzstd-dev \ |
| 64 | + llvm-dev \ |
| 65 | + lsb-release \ |
| 66 | + meson \ |
| 67 | + mold \ |
| 68 | + ninja-build \ |
| 69 | + nlohmann-json3-dev \ |
| 70 | + pkg-config \ |
| 71 | + protobuf-compiler-grpc \ |
| 72 | + python3-dev \ |
| 73 | + python3-pip \ |
| 74 | + python3-setuptools \ |
| 75 | + rapidjson-dev \ |
| 76 | + tzdata \ |
| 77 | + valac \ |
| 78 | + zlib1g-dev && \ |
| 79 | + if apt list | grep -q '^libcuda'; then \ |
| 80 | + apt install -y -V ${quiet} nvidia-cuda-toolkit; \ |
| 81 | + else \ |
| 82 | + :; \ |
| 83 | + fi && \ |
| 84 | + apt clean && \ |
| 85 | + rm -rf /var/lib/apt/lists/* |
0 commit comments