ubuntu-1804.dockerfile 1.3 KB

1234567891011121314151617181920212223242526
  1. # syntax=docker/dockerfile:1.0
  2. FROM ubuntu:18.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 software-properties-common \
  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" > /etc/apt/sources.list.d/kitware.list \
  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" > /etc/apt/sources.list.d/llvm.list \
  12. && add-apt-repository ppa:ubuntu-toolchain-r/test \
  13. && apt-get update
  14. RUN apt-get install -y --no-install-recommends python3.8 python3.8-venv python3-venv \
  15. && python3.8 -m venv /opt/ve && /opt/ve/bin/pip install -U pip
  16. ENV PATH=/opt/ve/bin:$PATH
  17. RUN apt-get install -y --no-install-recommends git cmake ninja-build antlr3 m4 clang-14 lld-14 libidn11-dev libaio1 libaio-dev llvm-14 make \
  18. && pip install conan==1.59 grpcio-tools==1.57.0 \
  19. && (V=4.8.1; curl -L https://github.com/ccache/ccache/releases/download/v${V}/ccache-${V}-linux-x86_64.tar.xz | \
  20. tar -xJ -C /usr/local/bin/ --strip-components=1 --no-same-owner ccache-${V}-linux-x86_64/ccache)