-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
44 lines (33 loc) · 1.19 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
FROM kbase/sdkpython:3.8.10
MAINTAINER KBase Developer
# -----------------------------------------
# Insert apt-get instructions here to install
# any required dependencies for your module.
# libz is for Minimap2 in Quast
RUN apt update && apt install -y g++ nano tree wget libz-dev
RUN python -m pip install --upgrade pip \
&& pip install \
psutil==6.0.0 \
matplotlib==3.7.5 \
quast==5.2.0 \
biopython==1.83 \
&& rm -r /opt/conda3/lib/python3.8/site-packages/quast_libs/genemark \
&& rm -r /opt/conda3/lib/python3.8/site-packages/quast_libs/genemark-es
# Genemark is not open source for non-academic use, and so can't be used in KBase
# Precompile dependencies vs compiling at first use
# In particular, this allows the container to run @ NERSC
RUN mkdir /quasttemp \
&& cd /quasttemp \
&& wget quast.sf.net/test_data.tar.gz \
&& tar xzf test_data.tar.gz \
&& quast.py --test --debug \
&& cd - \
&& rm -r /quasttemp
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod -R 777 /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]