-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
56 lines (46 loc) · 1.57 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
55
56
# Base Image
FROM continuumio/miniconda3
# Metadata
LABEL base.image="continuumio/miniconda3"
LABEL version="1"
LABEL software="BAMscale"
LABEL software.version="0.0.7"
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 <[email protected]>
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 conda update conda
RUN conda update --all
RUN conda config --add channels defaults
RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
RUN conda install 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"]