5 Star 17 Fork 10

PrimiHub/primihub

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.build 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
hobo0cn 提交于 2022-06-08 17:35 +08:00 . Develop (#3)
# Copyright 2022 Primihub
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM ubuntu:18.04
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
# Install python 3.9
RUN apt update && apt install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update \
&& apt remove -y python3.6 \
&& apt install -y python3.9 python3.9-dev
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
RUN apt install -y curl python3.9-distutils && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python3 get-pip.py --user \
&& rm -f get-pip.py
# install other dependencies
RUN apt install -y gcc-8 automake ca-certificates git g++-8 libtool m4 patch pkg-config python-dev unzip make wget curl zip ninja-build libgmp-dev \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
# install npm
RUN apt-get install -y npm
# install cmake
RUN wget https://primihub.oss-cn-beijing.aliyuncs.com/cmake-3.20.2-linux-x86_64.tar.gz \
&& tar -zxf cmake-3.20.2-linux-x86_64.tar.gz \
&& chmod +x cmake-3.20.2-linux-x86_64/bin/cmake \
&& ln -s `pwd`/cmake-3.20.2-linux-x86_64/bin/cmake /usr/bin/cmake \
&& rm -rf /var/lib/apt/lists/* cmake-3.20.2-linux-x86_64.tar.gz
# install bazelisk
RUN npm install -g @bazel/bazelisk
WORKDIR /src
ADD . /src
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/donyleno/primihub.git
git@gitee.com:donyleno/primihub.git
donyleno
primihub
primihub
master

搜索帮助