代码拉取完成,页面将自动刷新
FROM ubuntu:18.04
# This forces dpkg not to call sync() after package extraction and speeds up install
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
# No need for the apt cache in a container
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
# Install clang and everything needed to build core
RUN apt-get update \
&& apt-get install -y \
libcurl4-openssl-dev \
libprocps-dev \
libuv1-dev \
ninja-build \
git \
gnupg \
wget \
zlib1g-dev
# Setup the LLVM repository
RUN echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main > /etc/apt/sources.list.d/clang.list
# Download the GBG key to use the LLVM repo
ADD https://apt.llvm.org/llvm-snapshot.gpg.key /tmp/llvm.key
# Add the key
RUN apt-key add /tmp/llvm.key
RUN apt-get update \
&& apt-get install -y clang-11 clang-format-11 \
&& rm -rf /var/lib/apt/lists/*
# Make clang the default compiler
ENV CC clang
ENV CXX clang++
RUN ln -s /usr/bin/clang-11 /usr/bin/clang \
&& ln -s /usr/bin/clang++-11 /usr/bin/clang++ \
&& ln -s /usr/bin/clang-format-11 /usr/bin/clang-format \
&& ln -s /usr/bin/git-clang-format-11 /usr/bin/git-clang-format
RUN cd /opt \
&& wget -nv https://cmake.org/files/v3.15/cmake-3.15.2-Linux-x86_64.tar.gz \
&& tar zxf cmake-3.15.2-Linux-x86_64.tar.gz
ENV PATH "/opt/cmake-3.15.2-Linux-x86_64/bin:$PATH"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。