nf-core_modules/modules/spaceranger/Dockerfile
Edmund Miller d40cbb5e58
build(spaceranger): Add initial dockerfile
Co-authored-by: Gisela Gabernet <gisela.gabernet@gmail.com>
2021-11-05 11:18:32 -05:00

21 lines
889 B
Docker

FROM continuumio/miniconda3:4.9.2
LABEL authors="Gisela Gabernet <gisela.gabernet@gmail.com>,Edmund Miller <edmund.a.miller@gmail.com>" \
description="Docker image containing Space Ranger"
# Disclaimer: this container is not provided nor supported by 10x Genomics.
# Install procps and clean apt cache
RUN apt-get update --allow-releaseinfo-change \
&& apt-get install -y procps \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Copy pre-downloaded spaceranger file
ENV SPACERANGER_VER 1.3.0
COPY spaceranger-$SPACERANGER_VER.tar.gz /opt/spaceranger-$SPACERANGER_VER.tar.gz
# Install spaceranger
RUN \
cd /opt && \
tar -xzvf spaceranger-$SPACERANGER_VER.tar.gz && \
export PATH=/opt/spaceranger-$SPACERANGER_VER:$PATH && \
ln -s /opt/spaceranger-$SPACERANGER_VER/spaceranger /usr/bin/spaceranger && \
rm -rf /opt/spaceranger-$SPACERANGER_VER.tar.gz