1 Star 0 Fork 1.4K

纪春庆/OpenArkCompiler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
keithyau 提交于 2019-11-02 17:42 . Add dockerfile
FROM ubuntu:16.04 AS build-env
MAINTAINER https://www.openarkcompiler.cn
# Setting up the build environment
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list && \
dpkg --add-architecture i386 && \
apt-get -y update && \
apt-get -y dist-upgrade && \
apt-get -y install curl git-core tar xz-utils unzip gnupg flex bison gperf build-essential ccache openjdk-8-jdk && \
apt-get -y install zlib1g-dev libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc lib32z1-dev qemu g++-multilib gcc-multilib libglib2.0-dev libpixman-1-dev linux-libc-dev:i386 && \
apt-get -y install python3-paramiko python-paramiko python-jenkins python-requests python-xlwt && \
apt-get -y install gcc-5-aarch64-linux-gnu g++-5-aarch64-linux-gnu aria2 && \
mkdir -p /tools/ninja /tools/gn && \
cd /tools && \
curl -C - -LO http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && \
curl -LO https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip && \
curl -L -o /tools/gn/gn https://archive.softwareheritage.org/browse/content/sha1_git:2dc0d5b26caef44f467de8120b26f8aad8b878be/raw/?filename=gn && \
tar Jvxf /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz -C /tools/ && \
unzip /tools/ninja-linux.zip -d /tools/ninja/ && \
chmod a+x /tools/gn/gn && \
rm /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz /tools/ninja-linux.zip && \
rm -rf /var/cache/apt/archives
# copy source
COPY . /OpenArkCompiler
WORKDIR /OpenArkCompiler
# create symbolic link and
RUN mkdir -p /OpenArkCompiler/tools /OpenArkCompiler/tools/gn && \
ln -s /tools/ninja /OpenArkCompiler/tools/ninja_1.9.0 && \
ln -s /tools/gn/gn /OpenArkCompiler/tools/gn/gn && \
ln -s /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04 /OpenArkCompiler/tools/clang_llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04
# compile
RUN ["/bin/bash", "-c", "source build/envsetup.sh && make"]
# build final docker image
FROM ubuntu:16.04
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y openjdk-8-jdk curl vim && \
rm -rf /var/cache/apt/archives
COPY --from=build-env /OpenArkCompiler/out /OpenArkCompiler
VOLUME /OpenArkCompiler
ENV PATH=/OpenArkCompiler/bin:$PATH
CMD maple -h
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Cade/OpenArkCompiler.git
git@gitee.com:Cade/OpenArkCompiler.git
Cade
OpenArkCompiler
OpenArkCompiler
master

搜索帮助