-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (50 loc) · 2.17 KB
/
Dockerfile
File metadata and controls
64 lines (50 loc) · 2.17 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:16.04
LABEL base.image="variant_QC:latest"
LABEL tags="Variant QC"
# Replace sh with bash
RUN cd /bin && rm sh && ln -s bash sh
ARG DEBIAN_FRONTEND=noninteractive
# Configure locale and timezone
RUN apt-get update && apt-get install -y locales && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure -f noninteractive locales && \
/usr/sbin/update-locale LANG=en_US.UTF-8; \
apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/dpkg.log
# Install miniconda3 at /opt/conda
RUN apt-get update \
&& apt-get -y install --no-install-recommends curl bzip2 ca-certificates bsdmainutils \
&& curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
&& bash /tmp/miniconda.sh -bfp /opt/conda \
&& rm -rf /tmp/miniconda.sh \
&& apt-get -y remove curl bzip2 \
&& apt-get -y autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log \
&& /opt/conda/bin/conda clean --all --yes
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8" \
PATH="/opt/conda/bin:${PATH}" \
SHELL="/bin/bash"
RUN conda config --add channels conda-forge \
&& conda config --add channels bioconda \
&& conda config --add channels vladsaveliev
## Install git
RUN apt-get update \
&& apt-get install -y --no-install-recommends git apt-transport-https gnupg2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/log/dpkg.log
RUN conda install -y python=3.6 varscan=2.4.4 gatk4=4.1.8.1 samtools=1.7 \
matplotlib=3.3.1 pyvcf=0.6.8 seaborn=0.10.1 pysam=0.15.3 \
pandas=1.1.0 bcftools=1.9 samplot=1.0.17 bedtools=2.29.2 pybedtools=0.8.1 jupyterlab=2.2.5 \
picard=2.23.3 igv-reports=1.0.1 r-base=4.0.2 bed_annotation=1.1.2 tabix=0.2.6 && \
conda clean -y --all
RUN conda install -c conda-forge matplotlib-venn=0.11.5 && \
conda clean -y --all
USER root
WORKDIR /home/
ADD ./docker-entrypoint.sh /home/
ADD ./.bashrc /home/
RUN source /home/.bashrc
RUN chmod +x ./docker-entrypoint.sh
ENTRYPOINT ["/home/docker-entrypoint.sh"]
#RUN git clone https://github.com/ksanao/variant_QC