forked from tiny-dnn/tiny-dnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (36 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:16.04
MAINTAINER Edgar Riba <edgar.riba@gmail.com>
# Update aptitude with new repo
RUN apt-get update
# Install software
RUN apt-get install -y \
build-essential \
cmake \
python-pip \
git
# Setup software directories
RUN mkdir -p /software
# Setup dependencies
RUN apt-get install -y \
libpthread-stubs0-dev \
libtbb-dev
# Download and configure PeachPy
RUN cd /software && \
git clone https://github.com/Maratyszcza/PeachPy.git && \
cd /software/PeachPy && \
pip install -r requirements.txt && \
python setup.py generate && \
pip install .
# Download and configure NNPACK
RUN apt-get install ninja-build && \
pip install ninja-syntax && \
cd /software && \
git clone --recursive https://github.com/Maratyszcza/NNPACK.git && \
cd /software/NNPACK && \
python ./configure.py && \
ninja
# Download tiny-dnn
RUN cd /software && \
git clone https://github.com/tiny-dnn/tiny-dnn.git && \
cd /software/tiny-dnn && \
git submodule update --init