-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (26 loc) · 951 Bytes
/
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
FROM google/cloud-sdk:379.0.0
# add repo tools
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \
&& apt-get update \
&& apt-get --yes install \
wget=1.20.1-1.1 \
pigz=2.4-1 \
openjdk-11-jre=11.0.14+9-1~deb10u1 \
# necessary for building samtools
libncurses5-dev=6.1+20181013-2+deb10u5 \
zlib1g-dev=1:1.2.11.dfsg-1+deb10u2 \
libbz2-dev=1.0.6-9.2~deb10u1 \
liblzma-dev=5.2.4-1+deb10u1 \
libcurl4-openssl-dev=7.64.0-4+deb10u2
# add non-repo tools
RUN wget -qO- https://github.com/samtools/samtools/releases/download/1.10/samtools-1.10.tar.bz2 | tar xjf - \
&& cd samtools-1.10 \
&& ./configure --prefix=/usr --enable-libcurl \
&& make \
&& make install
ADD https://github.com/broadinstitute/picard/releases/download/2.24.0/picard.jar picard.jar
# add script
COPY cram2fastq cram2fastq
# final preparations
RUN chmod +x cram2fastq
ENTRYPOINT ["./cram2fastq"]