-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
78 lines (66 loc) · 2.17 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM debian:bullseye-slim
LABEL authors="Simon Heumos, Jean Monlong"
LABEL description="Preliminary docker image containing all requirements for pgge pipeline"
LABEL base_image="debian:bullseye-slim"
LABEL software="pgge"
LABEL about.home="https://github.com/pangenome/pgge"
LABEL about.license="SPDX:MIT"
# Required dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget \
curl \
less \
gcc \
tzdata \
make \
git \
sudo \
pkg-config \
bc \
time \
procps \
libxml2-dev libssl-dev libcurl4-openssl-dev \
apt-transport-https software-properties-common dirmngr gpg-agent \
&& rm -rf /var/lib/apt/lists/*
# rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh && \
sh rust.sh -y --no-modify-path
ENV PATH /root/.cargo/bin:$PATH
RUN cd ../../
# peanut
RUN git clone https://github.com/pangenome/rs-peanut.git \
&& cd rs-peanut \
&& git pull \
&& git checkout 2783bca \
&& cargo build --release \
&& cp target/release/peanut /usr/local/bin/peanut \
&& cd ../
# splitfa
RUN git clone https://github.com/ekg/splitfa.git \
&& cd splitfa \
&& git pull \
&& git checkout 98589b2 \
&& cargo build --release \
&& cp target/release/splitfa /usr/local/bin/splitfa \
&& cd ../
# miniconda3
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
ENV PATH /miniconda/bin:$PATH
SHELL ["/bin/bash", "-c"]
# Install the conda environment
COPY environment.yml /
RUN conda env create --quiet -f /environment.yml && conda clean -a
# Add conda installation dir to PATH (instead of doing 'conda activate')
ENV PATH /miniconda/envs/pgge-dev/bin:$PATH
# Set path for all users
RUN echo "export PATH=$PATH" > /etc/profile
# bring in the binaries and scripts from pgge
COPY pgge /usr/local/bin/pgge
RUN mkdir /scripts
COPY scripts/beehave.R /scripts/beehave.R
RUN chmod 777 /usr/local/bin/pgge && chmod 777 /scripts/beehave.R
ENTRYPOINT [ "/bin/sh", "-c", "-l" ]