-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile_run
67 lines (51 loc) · 1.7 KB
/
Dockerfile_run
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
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 \
zip \
wget \
build-essential \
cmake
RUN wget https://github.com/traviswheelerlab/ultra/archive/545e0ce8058ca105d3a86e87bc6ef8b6862b5011.zip \
&& unzip /545e0ce8058ca105d3a86e87bc6ef8b6862b5011.zip \
&& mv /ULTRA-545e0ce8058ca105d3a86e87bc6ef8b6862b5011/ ULTRA/
WORKDIR /ULTRA
RUN cmake . && \
make && \
cp ultra /
# -----------------------------------------------------------------------------
FROM python:3.7-slim-bullseye as polya
RUN mkdir polyA
WORKDIR /polyA
RUN pip install pipenv
COPY Pipfile .
COPY Pipfile.lock .
RUN pipenv sync --python `which python` && \
pipenv run pip freeze > /requirements.txt
# -----------------------------------------------------------------------------
FROM python:3.7-slim-bullseye
COPY --from=easel /esl_scorematrix /usr/local/bin/
RUN esl_scorematrix -h
COPY --from=ultra /ultra /usr/local/bin/
RUN ultra -h
RUN mkdir polyA
WORKDIR /polyA
COPY --from=polya /requirements.txt .
RUN pip install -r requirements.txt
COPY polyA/ polyA/
ENV PYTHONPATH=/polyA
ENTRYPOINT [ "python", "-m", "polyA" ]