forked from TravisWheelerLab/polyA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_run
62 lines (48 loc) · 1.52 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
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 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" ]