From 7c7377c42e114266070f2de059b2bc6b5cbae8e5 Mon Sep 17 00:00:00 2001 From: dolphin8 Date: Tue, 26 Jun 2018 13:41:26 +0800 Subject: [PATCH] add Dockerfile --- Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..0a249af932 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM ubuntu:18.04 + +RUN echo '\ +deb bionic main restricted universe multiverse\n\ +deb bionic-updates main restricted universe multiverse\n\ +deb bionic-backports main restricted universe multiverse\n\ +deb bionic-security main restricted universe multiverse\n'\ +> /etc/apt/sources.list +RUN sed -ie 's||http://mirrors.tuna.tsinghua.edu.cn/ubuntu/|' /etc/apt/sources.list + +RUN apt-get update && apt-get upgrade -y +RUN apt-get install -y --no-install-recommends \ + curl \ + unzip \ + git \ + cmake \ + python \ + python-pip \ + python-setuptools \ + clang-format-5.0 \ + graphviz +RUN apt-get autoremove -y && apt-get clean +RUN pip install wheel pre-commit +RUN pre-commit autoupdate +RUN ln -s clang-format-5.0 /usr/bin/clang-format +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 \ No newline at end of file -- GitLab