-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
45 lines (32 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM python:3.6-slim
MAINTAINER MSSM HIMC
ARG CELLRANGER_VERSION
ARG BCL2FASTQ_VERSION
RUN pip3 install --upgrade awscli boto3
# Install bcl2fastq. cellranger mkfastq requires it.
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y alien unzip wget \
&& wget https://s3.amazonaws.com/10x-pipeline/software/bcl2fastq/bcl2fastq2-v$BCL2FASTQ_VERSION-linux-x86-64.zip \
&& unzip bcl2fastq2*.zip \
&& alien bcl2fastq2*.rpm \
&& dpkg -i bcl2fastq2*.deb \
&& rm bcl2fastq2*.deb bcl2fastq2*.rpm bcl2fastq2*.zip \
&& apt-get remove -y alien
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 \
&& chmod +x /usr/local/bin/dumb-init
# don't run containers as root
RUN groupadd -g 999 cellranger \
&& useradd -r -u 999 -g cellranger cellranger \
&& mkdir /home/cellranger \
&& chown -R cellranger:cellranger /home/cellranger
USER cellranger
# Install cellranger
RUN mkdir /home/cellranger/bin \
&& cd /home/cellranger/bin \
&& wget -O - https://s3.amazonaws.com/10x-pipeline/software/cellranger/cellranger-$CELLRANGER_VERSION.tar.gz | tar -xzvf -
ENV PATH /home/cellranger/bin:/home/cellranger/bin/cellranger-$CELLRANGER_VERSION:$PATH
COPY bin/ /home/cellranger/bin/
WORKDIR /home/cellranger/
ENTRYPOINT ["/usr/local/bin/dumb-init"]
CMD ["bash"]