Created
July 31, 2015 14:06
-
-
Save lirsacc/c35df290a901d763f901 to your computer and use it in GitHub Desktop.
Landmarkerio server Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage | |
# docker build . -t lmio | |
# docker run --name=lmio --net=host -v ~/data_dir/:/root/workspace/ -i -t -d lmio | |
# docker exec -it lmio /bin/bash | |
# | |
FROM ubuntu:latest | |
ENV container docker | |
# Setup | |
# ------------------------------------------------------------------------- | |
ENV LANG en_US.utf8 | |
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 | |
# Real bash prompt | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
RUN touch $HOME/.bashrc | |
ENV HOME /root | |
WORKDIR /root | |
# Dependencies | |
# ------------------------------------------------------------------------- | |
# Apt install | |
RUN echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install -y --no-install-recommends \ | |
ca-certificates build-essential \ | |
git-core curl wget bzip2 \ | |
libpq-dev libglib2.0-0 libxext6 libsm6 libxrender1 \ | |
libgl1-mesa-dev libglu1-mesa libxrandr2 libxi6 libxt6 \ | |
python-dev python-pip | |
# Miniconda | |
ENV CONDA_DIR $HOME/conda | |
RUN curl https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -o conda.sh | |
RUN chmod +x conda.sh | |
RUN ./conda.sh -b -p $CONDA_DIR | |
ENV PATH $CONDA_DIR/bin:$PATH | |
# Landmarkerio server | |
RUN conda install --yes -c menpo landmarkerio | |
# Clean up | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment