-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
47 lines (44 loc) · 907 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
40
41
42
43
44
45
46
47
FROM ubuntu:14.04
MAINTAINER Mike Bartoli "michael.bartoli@pomona.edu"
RUN apt-get update
RUN apt-get -y install \
python \
build-essential \
python-dev \
python-pip \
wget \
unzip \
ipython \
git \
perl \
libatlas-base-dev \
gcc \
gfortran \
g++ \
curl \
lua5.2 \
liblua5.2-dev \
qt-sdk
RUN pip install numpy scipy
# torch installation
WORKDIR /home
RUN curl -sk https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
RUN git clone https://github.com/torch/distro
RUN mv distro torch
WORKDIR /home/torch
RUN ./install.sh
# install luarocks
WORKDIR /home
RUN \
wget http://luarocks.org/releases/luarocks-2.2.0.tar.gz && \
tar -xzvf luarocks-2.2.0.tar.gz && \
rm -f luarocks-2.2.0.tar.gz && \
cd luarocks-2.2.0 && \
./configure && \
make build && \
make install && \
make clean && \
cd .. && \
rm -rf luarocks-2.2.0
# torch extras
WORKDIR /home