-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
36 lines (31 loc) · 1.02 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
FROM ubuntu:22.04
MAINTAINER Mikhail Kolmogorov, [email protected]
# update and install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata && \
apt-get -y install make gcc g++ && \
apt-get -y install autoconf bzip2 wget tabix libz-dev libncurses5-dev libbz2-dev liblzma-dev && \
#apt-get -y install samtools && \
apt-get -y install bedtools && \
apt-get -y install python3-pip
RUN python3 --version
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install pysam scipy edlib matplotlib biopython
### samtools
# 1.9
WORKDIR /opt/samtools
RUN wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2 && \
tar xvf samtools-1.9.tar.bz2 && \
rm -r /opt/samtools/samtools-1.9.tar.bz2 && \
cd samtools-1.9/ && \
autoheader && \
autoconf -Wno-header && \
./configure && \
make && \
cp samtools /usr/bin/samtools
COPY . /opt/hapdiff
WORKDIR /opt/hapdiff
RUN make
ENV PATH "/opt/hapdiff:${PATH}"
ENV PYTHONUNBUFFERED "1"
ENV MPLCONFIGDIR "/tmp"