Dockerfile 1.2 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
        make \
D
dolphin8 已提交
18
        cmake \
D
dolphin8 已提交
19
        cmake-curses-gui \
D
dolphin8 已提交
20 21 22 23
        python \
        python-pip \
        python-setuptools \
        clang-format-5.0 \
D
dolphin8 已提交
24 25 26
        graphviz \
        g++-arm-linux-gnueabi \
        gcc-arm-linux-gnueabi
D
dolphin8 已提交
27
RUN apt-get autoremove -y && apt-get clean
D
dolphin8 已提交
28 29
RUN pip install --upgrade pip
RUN pip install wheel && pip install pre-commit
D
dolphin8 已提交
30
RUN ln -s clang-format-5.0 /usr/bin/clang-format
D
dolphin8 已提交
31 32
#RUN cd /tmp && curl -O http://mirrors.neusoft.edu.cn/android/repository/android-ndk-r17b-linux-x86_64.zip
#RUN cd /opt && unzip /tmp/android-ndk-r17b-linux-x86_64.zip