-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
16 lines (16 loc) · 870 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM kaixhin/torch:latest
RUN apt-get install -y git wget libprotobuf-dev protobuf-compiler libhdf5-serial-dev hdf5-tools python-setuptools python-dev
RUN cd / ; git clone https://github.com/karpathy/neuraltalk2.git
RUN luarocks install loadcaffe
#here CUDA toolkit is not intalled since I don't have a GPU to test it on, see this Dockerfile for examples https://hub.docker.com/r/halo9pan/cuda/~/dockerfile/
#RUN luarocks install cutorch
RUN cd / ; git clone https://github.com/deepmind/torch-hdf5.git
RUN cd /torch-hdf5/ && luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"
RUN easy_install pip && pip install h5py
RUN curl https://deb.nodesource.com/setup_5.x|sh -
RUN apt-get install -y nodejs
ADD webapp /webapp
ADD README.md /webapp/README.md
RUN cd /webapp && /usr/bin/npm install
CMD ["/usr/bin/node","/webapp/index.js"]
WORKDIR /webapp