-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
54 lines (44 loc) · 1.54 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
46
47
48
49
50
51
52
53
54
# Base Image
FROM continuumio/anaconda3
# Metadata
LABEL base.image="continuumio/anaconda3"
LABEL version="1"
LABEL software="BAMscale"
LABEL software.version="0.0.1"
LABEL description="BAMscale is a one-step tool for either 1) quantifying and normalizing the coverage of peaks or 2) generated scaled BigWig files for easy visualization of commonly used DNA-seq capture based methods."
LABEL tags="BAM"
LABEL website="https://github.com/ncbi/BAMscale"
# Maintainer
MAINTAINER Roberto Vera Alvarez <r78v10a07@gmail.com>
USER root
RUN apt-get update && \
apt-get install -y apt-utils wget bzip2 sudo gcc make && \
apt-get clean && \
apt-get purge && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Updating Anaconda packages
RUN /opt/conda/bin/conda update conda
RUN /opt/conda/bin/conda update anaconda
RUN /opt/conda/bin/conda update --all
RUN /opt/conda/bin/conda install -c bioconda htslib libbigwig
# Add user ubuntu with no password, add to sudo group
RUN adduser --disabled-password --gecos '' ubuntu
RUN chmod a+rwx /home/ubuntu/
RUN mkdir /home/ubuntu/bin
RUN chown -R ubuntu /home/ubuntu
USER ubuntu
ENV URL=https://github.com/ncbi/BAMscale
ENV FOLDER=BAMscale
ENV PATH="/home/ubuntu/bin:${PATH}"
ENV CONDA_DIR="/opt/conda/"
ENV CPPFLAGS="-I $CONDA_DIR/include"
ENV LDFLAGS="-L $CONDA_DIR/lib -Wl,-rpath,$CONDA_DIR/lib"
RUN cd /home/ubuntu/ && \
git clone $URL && \
cd $FOLDER && \
make && \
mv bin/BAMscale /home/ubuntu/bin/ && \
cd .. && \
rm -rf $FOLDER
WORKDIR /data
CMD ["/home/ubuntu/bin/BAMscale"]