From dd0047d43430d7f17b2c3fbc6e5af8137ec88475 Mon Sep 17 00:00:00 2001 From: "tobias.neumann" Date: Sun, 15 Dec 2019 10:36:41 +0100 Subject: [PATCH] Dockerfile location changed. --- docker/Dockerfile => Dockerfile | 27 +++++++++++++-------------- {docker/hooks => hooks}/build | 0 2 files changed, 13 insertions(+), 14 deletions(-) rename docker/Dockerfile => Dockerfile (51%) rename {docker/hooks => hooks}/build (100%) mode change 100755 => 100644 diff --git a/docker/Dockerfile b/Dockerfile similarity index 51% rename from docker/Dockerfile rename to Dockerfile index ec0c100..60ea961 100644 --- a/docker/Dockerfile +++ b/Dockerfile @@ -15,24 +15,23 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -FROM ubuntu:18.04 +FROM continuumio/miniconda3:4.7.12 MAINTAINER Tobias Neumann ARG VERSION_ARG -ENV DEBIAN_FRONTEND noninteractive -ENV DEBCONF_NONINTERACTIVE_SEEN true +COPY environment.yml /tmp/environment.yml -# binutils is required to run opencl programs -RUN buildDeps='git wget gcc g++ libc6-dev make cmake zlib1g-dev python-pip python-dev python-distribute python-pip bzip2 libncurses-dev libbz2-dev liblzma-dev' \ - runDeps='python default-jre binutils r-base unzip' \ - && echo "tzdata tzdata/Areas select Europe" > /tmp/preseed.txt; \ - echo "tzdata tzdata/Zones/Europe select Berlin" >> /tmp/preseed.txt; \ - debconf-set-selections /tmp/preseed.txt \ - && set -x \ - && apt-get update && apt-get install -y $buildDeps $runDeps --no-install-recommends \ +RUN apt-get update \ + && apt-get install -y procps \ + && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* \ - && pip install --upgrade pip==9.0.3 \ - && pip install git+https://github.com/t-neumann/slamdunk.git@${VERSION_ARG} \ - && apt-get purge -y --auto-remove $buildDeps \ No newline at end of file + && conda config --add channels defaults \ + && conda config --add channels bioconda \ + && conda config --add channels conda-forge \ + && conda env create --name slamdunk -f /tmp/environment.yml \ + && /opt/conda/envs/slamdunk/bin/pip install git+https://github.com/t-neumann/slamdunk.git@${VERSION_ARG} \ + && rm -rf /opt/conda/pkgs/* + +ENV PATH /opt/conda/envs/slamdunk/bin:$PATH diff --git a/docker/hooks/build b/hooks/build old mode 100755 new mode 100644 similarity index 100% rename from docker/hooks/build rename to hooks/build