forked from tiny-dnn/tiny-dnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (36 loc) · 1.07 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
45
46
FROM ubuntu:17.04
MAINTAINER Edgar Riba <[email protected]>
# 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
# Upgrade pip
RUN pip install --upgrade pip
# Download and configure PeachPy
RUN pip install --upgrade git+https://github.com/Maratyszcza/PeachPy
# Download and configure confu
RUN pip install --upgrade git+https://github.com/Maratyszcza/confu
# 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 && \
confu setup && \
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