7f5a1b9e33bd08aeb998f86ced98cbeca1710ba5
[platform/core/ml/nnfw.git] / infra / docker / focal / Dockerfile
1 # Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 FROM ubuntu:20.04
16
17 ARG UBUNTU_MIRROR
18
19 # Install 'add-apt-repository'
20 RUN apt-get update && apt-get -qqy install software-properties-common
21
22 # Build tool
23 RUN apt-get update && apt-get -qqy install build-essential cmake scons git lcov g++-arm-linux-gnueabihf g++-aarch64-linux-gnu
24
25 # Install extra dependencies (Caffe, nnkit)
26 RUN apt-get update && apt-get -qqy install libboost-all-dev libgflags-dev libgoogle-glog-dev libatlas-base-dev libhdf5-dev
27
28 # Install protocol buffer
29 RUN apt-get update && apt-get -qqy install libprotobuf-dev protobuf-compiler
30
31 # Additonal tools (except clang-format-3.9)
32 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qqy install doxygen graphviz wget zip unzip python3 python3-pip python3-venv hdf5-tools pylint
33 RUN pip3 install --upgrade pip
34 RUN pip3 install yapf==0.22.0 numpy
35
36 # Install google test (source)
37 RUN apt-get update && apt-get -qqy install libgtest-dev
38
39 # Install gbs & sdb
40 RUN echo 'deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_20.04/ /' | cat >> /etc/apt/sources.list
41 RUN apt-get update && apt-get -qqy install gbs
42 RUN wget http://download.tizen.org/sdk/tizenstudio/official/binary/sdb_4.2.19_ubuntu-64.zip -O sdb.zip
43 RUN unzip -d tmp sdb.zip && rm sdb.zip
44 RUN cp tmp/data/tools/sdb /usr/bin/. && rm -rf tmp
45
46 # Clean archives (to reduce image size)
47 RUN apt-get clean -y