Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Update single_cell_toolkit Docker image
Browse files Browse the repository at this point in the history
- Use zlib-ng base image (#325)
- Include saturation script (#332), and python 3.7 install
  • Loading branch information
cflerin committed Apr 1, 2021
1 parent ae9305a commit 1282878
Showing 1 changed file with 22 additions and 41 deletions.
63 changes: 22 additions & 41 deletions src/singlecelltoolkit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
FROM ubuntu:20.04
FROM vibsinglecellnf/samtools:1.12

ENV DEBIAN_FRONTEND=noninteractive
RUN BUILDPKGS="autoconf automake make gcc perl zlib1g-dev libbz2-dev liblzma-dev libcurl4-gnutls-dev libssl-dev libncurses5-dev \
git \
libhts-dev \
curl \
wget" && \
apt-get update && \
apt-get install -y apt-utils debconf locales locales-all ca-certificates && dpkg-reconfigure locales && \
apt-get install -y --no-install-recommends $BUILDPKGS && \
apt-get install -y --no-install-recommends clang python3 llvm-6.0 pigz
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 \
python3-venv \
wget && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 100

# install htslib
ENV HTSLIB_VERSION 1.11
RUN curl -L -o /tmp/htslib-${HTSLIB_VERSION}.tar.bz2 \
https://github.com/samtools/htslib/releases/download/${HTSLIB_VERSION}/htslib-${HTSLIB_VERSION}.tar.bz2 && \
mkdir -p /tmp/htslib-${HTSLIB_VERSION} && \
tar jxvf /tmp/htslib-${HTSLIB_VERSION}.tar.bz2 -C /tmp/htslib-${HTSLIB_VERSION} --strip-components 1 && \
cd /tmp/htslib-${HTSLIB_VERSION} && \
./configure && \
make && \
make install && \
cd .. && rm -rf htslib-${HTSLIB_VERSION}
RUN python -m venv /opt/venv
# Make sure we use the virtualenv:
ENV PATH="/opt/venv/bin:$PATH"

# install samtools
ENV SAMTOOLS_VERSION 1.11
RUN curl -L -o /tmp/samtools-${SAMTOOLS_VERSION}.tar.bz2 \
https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2 && \
mkdir -p /tmp/samtools-${SAMTOOLS_VERSION} && \
tar jxvf /tmp/samtools-${SAMTOOLS_VERSION}.tar.bz2 -C /tmp/samtools-${SAMTOOLS_VERSION} --strip-components 1 && \
cd /tmp/samtools-${SAMTOOLS_VERSION} && \
./configure && \
make && \
make install && \
cd .. && rm -rf samtools-${SAMTOOLS_VERSION}
RUN pip install --no-cache-dir --upgrade pip wheel && \
pip install --no-cache-dir \
pandas \
scipy \
uncertainties \
typing \
pathlib \
matplotlib \
numpy

# install seq (https://github.com/seq-lang/seq/):
ENV SEQ_VERSION=0.9.11
Expand All @@ -51,13 +38,7 @@ RUN git clone --depth=1 https://github.com/aertslab/single_cell_toolkit.git /opt
ENV seq_root_dir=/opt/seq
ENV PATH="/opt/single_cell_toolkit:${PATH}"

# final set of packages for usability
RUN apt-get -y update && \
apt-get -y --no-install-recommends install \
procps \
bash-completion \
less && \
apt-get remove --purge -y $BUILDPKGS && \
rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/cache/apt/* && \
rm -rf /var/lib/apt/lists/* && \
ldconfig

0 comments on commit 1282878

Please sign in to comment.