forked from duxan/quagmir
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
49 lines (40 loc) · 1.16 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
# Define base image
FROM ubuntu:14.04
WORKDIR /opt
#apt-get install dependencies
RUN apt-get update && apt-get install -y \
wget \
git \
zlib1g-dev \
software-properties-common \
python-software-properties \
python-dev \
python3-dev \
libmysqlclient-dev \
build-essential
RUN add-apt-repository ppa:fkrull/deadsnakes -y
RUN apt-get update && apt-get install python3.5 -y
#install pip
RUN wget https://bootstrap.pypa.io/get-pip.py
RUN python3.5 get-pip.py
RUN rm -rf get-pip.py
#install miniconda
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh
RUN wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O ~/miniconda.sh
RUN /bin/bash ~/miniconda.sh -b -p /opt/conda
RUN rm ~/miniconda.sh
ENV PATH /opt/conda/bin:$PATH
#install quagmir
RUN git clone https://github.com/duxan/quagmir
RUN conda env create -f quagmir/environment.yml
#restart following steps
RUN echo 13
WORKDIR /opt/quagmir
RUN git fetch
RUN git checkout adding_gff_13
WORKDIR /opt/
RUN rm -rf quagmir/motif-consensus.fa
RUN rm -rf quagmir/config.yaml
RUN rm -rf quagmir/data
COPY Dockerfile /opt/
MAINTAINER Nikola Tesic, Seven Bridges, <nikola.tesic@sbgenomics.com>