Here is a list of additional Lua and Torch dependencies that I use.
You can pick whatever you feel you might need.
# install torch
RUN git clone https://github.com/torch/distro.git /torch --recursive \
&& cd /torch \
&& ./install.sh \
&& cd ..
# install torch deps
RUN /torch/install/bin/luarocks install dpnn \
&& /torch/install/bin/luarocks install optim \
&& /torch/install/bin/luarocks install cunn \
&& /torch/install/bin/luarocks install cudnn \
&& /torch/install/bin/luarocks install luautf8 \
&& /torch/install/bin/luarocks install penlight \
&& /torch/install/bin/luarocks install moses \
&& /torch/install/bin/luarocks install torchx \
&& /torch/install/bin/luarocks install lua-cjson \
&& /torch/install/bin/luarocks install csv \
&& /torch/install/bin/luarocks install autograd \
&& /torch/install/bin/luarocks install dataload \
&& /torch/install/bin/luarocks install torchnet \
&& /torch/install/bin/luarocks install cutorch \
&& /torch/install/bin/luarocks install https://raw.githubusercontent.com/Kaixhin/torch-pastalog/master/rocks/pastalog-scm-1.rockspec \
&& git clone https://github.com/Element-Research/rnn.git \
&& cd rnn \
&& /torch/install/bin/luarocks make rocks/rnn-scm-1.rockspec \
&& cd .. \
The latest Torch does not support old rnn code that uses Element-Research classes.
In order to make you older recurrent models work you have to install Element-Research/rnn package separately otherwise just use "/torch/install/bin/luarocks rnn".
Best,
Pavel