forked from umccr/umccrise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (45 loc) · 1.73 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
57
58
FROM ubuntu:16.04
MAINTAINER Vlad Saveliev "https://github.com/vladsaveliev"
# Setup a base system
RUN apt-get update && \
apt-get install -y curl wget git unzip tar gzip bzip2 g++ make zlib1g-dev nano
# Install conda
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && \
bash miniconda.sh -b -p /miniconda
# Instead of `. /miniconda/etc/profile.d/conda.sh`
ENV PATH /miniconda/bin:$PATH
ENV CONDA_EXE /miniconda/bin/conda
ENV CONDA_ROOT /miniconda
ENV CONDA_PYTHON_EXE /miniconda/bin/python
RUN hash -r && \
conda config --set always_yes yes --set changeps1 no && \
conda update -q conda
#RUN apt-get update && \
# apt-get install -y make g++
# apt-get upgrade -y libstdc++6
#-t vieux/apache:2.0
# Install environemnt
COPY environment.yml .
RUN conda env create -n umccrise --file environment.yml
# Instead of `conda activate umccrise`:
ENV PATH /miniconda/envs/umccrise/bin:$PATH
ENV CONDA_PREFIX /miniconda/envs/umccrise
ENV CONDA_DEFAULT_ENV umccrise
# Download the reference data
RUN wget --no-check-certificate -c https://s3.amazonaws.com/biodata/genomes/GRCh37-seq.tar.gz && \
tar -xzvpf GRCh37-seq.tar.gz --directory / && \
gunzip -c /seq/GRCh37.fa.gz > /seq/GRCh37.fa
# Clone the test data
RUN git clone https://github.com/umccr/umccrise_test_data umccrise/tests/umccrise_test_data && \
ln -s /seq umccrise/tests/umccrise_test_data/data/genomes/Hsapiens/GRCh37/seq
RUN conda info -a
# Copy and install source
COPY . umccrise
RUN pip install -e umccrise
# Clean up
RUN rm -rf umccrise/.git && \
rm -rf /var/lib/apt/lists/* /var/tmp/* && \
conda clean --yes --tarballs && \
cd /usr/local && apt-get clean && \
rm -rf /.cpanm
ENV HOSTNAME umccrise_docker