-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Dockerfile
35 lines (30 loc) · 935 Bytes
/
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
# base image is ubuntu 18.04
FROM ubuntu:18.04
# update the package-list and install dependencies
RUN apt-get update && apt-get install -y \
build-essential \
python3.6-dev \
python3-pip \
swig \
doxygen \
clang-format \
clang \
clang-8 \
llvm-8 \
llvm-8-dev \
protobuf-compiler \
libprotoc-dev \
vim
# install numpy onnx with pip
# RUN pip3 install numpy onnx
RUN pip3 install numpy==1.15.0 onnx==1.5.0
# copy everything from current directory to container directory
COPY . /dnnCompiler
# below code is commented as we are using bash script to run this
# process because we need to run this differently from root directory and
# from swig directory, but docker doesn't support adding files from
# up a directory. For more information see this link:
# https://stackoverflow.com/questions/27068596/how-to-include-files-outside-of-dockers-build-context
# WORKDIR /dnnCompiler
# CMD make clean \
# && make