forked from TravisWheelerLab/polyA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (44 loc) · 1.36 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 python:3.7-slim-bullseye AS easel
ARG easel_version=0.48
RUN apt-get update && apt-get -y install \
autoconf \
build-essential
ADD https://github.com/EddyRivasLab/easel/archive/easel-${easel_version}.tar.gz easel.tar.gz
RUN tar xf easel.tar.gz
WORKDIR /easel-easel-${easel_version}
RUN autoconf && \
./configure && \
make && \
gcc -g -Wall -I. -L. -o esl_scorematrix \
-DeslSCOREMATRIX_EXAMPLE \
esl_scorematrix.c -leasel -lm && \
cp esl_scorematrix /
# -----------------------------------------------------------------------------
FROM python:3.7-slim-bullseye as ultra
RUN apt-get update && apt-get -y install \
git \
build-essential \
cmake
RUN git clone https://github.com/TravisWheelerLab/ULTRA.git
WORKDIR /ULTRA
RUN cmake . && \
make && \
cp ultra /
# -----------------------------------------------------------------------------
FROM python:3.7-slim-bullseye
RUN apt-get update && apt-get install -y \
make && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install and test esl_scorematrix
COPY --from=easel /esl_scorematrix /usr/local/bin/
RUN esl_scorematrix -h
# Install and test ultra
COPY --from=ultra /ultra /usr/local/bin/
RUN ultra -h
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install pipenv
VOLUME [ "/code" ]
WORKDIR /code
ENTRYPOINT [ "make" ]