Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / infra / docker / Dockerfile.1804
1 FROM ubuntu:18.04
2
3 ARG UBUNTU_MIRROR
4
5 # Install 'add-apt-repository'
6 RUN apt-get update && apt-get -qqy install software-properties-common
7
8 # Build tool
9 RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu
10
11 # Install extra dependencies (Caffe, nnkit)
12 RUN apt-get update && apt-get -qqy install libboost-all-dev libgflags-dev libgoogle-glog-dev libatlas-base-dev libhdf5-dev
13
14 # Install protocol buffer
15 RUN apt-get update && apt-get -qqy install libprotobuf-dev protobuf-compiler
16
17 # Additonal tools
18 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install doxygen graphviz wget unzip clang-format-3.9 python3 python3-pip python3-venv hdf5-tools pylint
19 RUN pip3 install --upgrade pip
20 RUN pip3 install yapf==0.22.0 numpy
21
22 # Install google test (source)
23 RUN apt-get update && apt-get -qqy install libgtest-dev
24
25 # Build and install google test static libraries
26 WORKDIR /root/gtest
27 RUN cmake /usr/src/gtest
28 RUN make
29 RUN mv *.a /usr/lib
30 WORKDIR /root
31 RUN rm -rf gtest
32
33 # Install gbs & sdb
34 RUN echo 'deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_18.04/ /' | cat >> /etc/apt/sources.list
35 RUN apt-get update && apt-get -qqy install gbs
36 RUN wget http://download.tizen.org/sdk/tizenstudio/official/binary/sdb_3.1.4_ubuntu-64.zip -O sdb.zip
37 RUN unzip -d tmp sdb.zip && rm sdb.zip
38 RUN cp tmp/data/tools/sdb /usr/bin/. && rm -rf tmp
39
40 # Clean archives (to reduce image size)
41 RUN apt-get clean -y