Dockerfile 1.6 KB
Newer Older
D
dolphin8 已提交
1
FROM ubuntu:16.04
D
dolphin8 已提交
2 3

RUN echo '\
D
dolphin8 已提交
4 5 6 7
deb <mirror> <version> main restricted universe multiverse\n\
deb <mirror> <version>-updates main restricted universe multiverse\n\
deb <mirror> <version>-backports main restricted universe multiverse\n\
deb <mirror> <version>-security main restricted universe multiverse\n'\
D
dolphin8 已提交
8 9
> /etc/apt/sources.list
RUN sed -ie 's|<mirror>|http://mirrors.tuna.tsinghua.edu.cn/ubuntu/|' /etc/apt/sources.list
D
dolphin8 已提交
10
RUN sed -ie 's|<version>|xenial|' /etc/apt/sources.list
D
dolphin8 已提交
11 12 13 14 15 16

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y --no-install-recommends \
        curl \
        unzip \
        git \
D
dolphin8 已提交
17 18
        make \
        cmake-curses-gui \
D
dolphin8 已提交
19 20 21 22
        python \
        python-pip \
        python-setuptools \
        clang-format-5.0 \
D
dolphin8 已提交
23 24 25
        graphviz \
        g++-arm-linux-gnueabi \
        gcc-arm-linux-gnueabi
D
dolphin8 已提交
26 27
RUN apt-get autoremove -y && apt-get clean
RUN ln -s clang-format-5.0 /usr/bin/clang-format
D
dolphin8 已提交
28 29 30
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wheel
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pre-commit
D
dolphin8 已提交
31
RUN cd /tmp && curl -O http://mirrors.neusoft.edu.cn/android/repository/android-ndk-r17b-linux-x86_64.zip
D
dolphin8 已提交
32 33 34 35
RUN curl -O https://mms-res.cdn.bcebos.com/cmake-3.10.3-Linux-x86_64.tar.gz && \
        tar xzf cmake-3.10.3-Linux-x86_64.tar.gz && \
        mv cmake-3.10.3-Linux-x86_64 /opt/cmake-3.10 && \
        mv /usr/bin/cmake /usr/bin/cmake.bak && ln -s /opt/cmake-3.10/bin/cmake /usr/bin/cmake
D
dolphin8 已提交
36 37
RUN cd /opt && unzip /tmp/android-ndk-r17b-linux-x86_64.zip
ENV NDK_ROOT /opt/android-ndk-r17b