File: Dockerfile

package info (click to toggle)
tiny-dnn 1.0.0a3%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,760 kB
  • sloc: cpp: 16,471; ansic: 11,829; lisp: 3,682; python: 3,422; makefile: 206
file content (44 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
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