ubuntu-2004.dockerfile 1.1 KB

1234567891011121314151617181920
  1. # syntax=docker/dockerfile:1.0
  2. FROM ubuntu:20.04
  3. ARG DEBIAN_FRONTEND=noninteractive
  4. ENV TZ=Etc/UTC
  5. ## prepare system
  6. RUN apt-get update \
  7. && apt-get install -y wget gnupg lsb-release curl xz-utils tzdata \
  8. && wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - \
  9. && echo "deb http://apt.kitware.com/ubuntu/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/kitware.list >/dev/null \
  10. && wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
  11. && echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-14 main" | tee /etc/apt/sources.list.d/llvm.list >/dev/null \
  12. && apt-get update
  13. RUN apt-get install -y git cmake python3-pip ninja-build antlr3 m4 clang-14 lld-14 libidn11-dev libaio1 libaio-dev llvm-14 \
  14. && pip3 install conan==1.59 grpcio-tools \
  15. && (V=4.8.1; curl -L https://github.com/ccache/ccache/releases/download/v${V}/ccache-${V}-linux-x86_64.tar.xz | \
  16. tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner ccache-${V}-linux-x86_64/ccache)