Create a gist now

Instantly share code, notes, and snippets.

@tamanobi /Dockerfile
Last active Jun 25, 2017

What would you like to do?
for NGT
#!/bin/bash
docker build --tag ngt_dev .
docker run --name ngtdev -it -v `pwd`:/home/dev ngt_dev bash
FROM ubuntu
WORKDIR /home
RUN apt-get update && apt-get install -y build-essential git curl unzip && \
curl -vL https://github.com/yahoojapan/NGT/archive/v1.1.0.zip -O && \
unzip ./v1.1.0.zip && rm ./v1.1.0.zip && \
curl https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz -O && \
tar -xvf ./cmake-3.8.2-Linux-x86_64.tar.gz && rm -f ./cmake-3.8.2-Linux-x86_64.tar.gz && \
cd NGT-1.1.0 && mkdir build && cd build && \
/home/cmake-3.8.2-Linux-x86_64/bin/cmake .. && \
make && make install && \
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib && \
rm -rf /home/cmake-3.8.2-Linux-x86_64
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment