Skip to content

Instantly share code, notes, and snippets.

@lirsacc
Created July 31, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lirsacc/c35df290a901d763f901 to your computer and use it in GitHub Desktop.
Save lirsacc/c35df290a901d763f901 to your computer and use it in GitHub Desktop.
Landmarkerio server Dockerfile
# 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