forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 994 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
36
37
38
39
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
curl \
wget \
git-core \
gcc \
g++ \
cmake \
python \
python2.7 \
python2.7-dev \
zlib1g-dev \
bzip2 \
libyaml-dev \
libyaml-0-2
RUN wget https://releases.numenta.org/pip/1ebd3cb7a5a3073058d0c9552ab074bd/get-pip.py -O - | python
RUN pip install --upgrade setuptools
RUN pip install wheel
ENV CC gcc
ENV CXX g++
ADD . /usr/local/src/nupic.core
WORKDIR /usr/local/src/nupic.core
# Explicitly specify --cache-dir, --build, and --no-clean so that build
# artifacts may be extracted from the container later. Final built python
# packages can be found in /usr/local/src/nupic.core/bindings/py/dist
RUN pip install \
--cache-dir /usr/local/src/nupic.core/pip-cache \
--build /usr/local/src/nupic.core/pip-build \
--no-clean \
pycapnp==0.5.8 \
-r bindings/py/requirements.txt && \
python setup.py bdist bdist_dumb bdist_wheel sdist