-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.bak
64 lines (46 loc) · 1.95 KB
/
Dockerfile.bak
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
FROM kbase/sdkbase2:python
MAINTAINER KBase Developer
# -----------------------------------------
# In this section, you can install any system dependencies required
# to run your App. For instance, you could place an apt-get update or
# install line here, a git checkout to download code, or run any other
# installation scripts.
RUN apt-get update && apt-get -y upgrade \
&& apt-get install -y --no-install-recommends \
git \
wget \
g++ \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
RUN rm -rf /root/.conda
RUN rm -rf /root/miniconda3
RUN rm -rf /miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda
RUN conda install nose jinja2
RUN pip3 install jsonrpcbase numpy biopython
RUN pip3 install coverage
RUN apt-get install -y apt-transport-https
COPY ./ca-certificates.conf /etc/ca-certificates.conf
RUN update-ca-certificates
RUN sudo wget https://dl.secondarymetabolites.org/antismash-stretch.list -O /etc/apt/sources.list.d/antismash.list
RUN sudo wget -q -O- https://dl.secondarymetabolites.org/antismash.asc | sudo apt-key add -
RUN sudo apt-get update
RUN apt-get install -y hmmer2 hmmer diamond-aligner fasttree prodigal ncbi-blast+ muscle glimmerhmm
WORKDIR /tmp
RUN wget https://dl.secondarymetabolites.org/releases/6.0.0/antismash-6.0.0.tar.gz && tar -zxf antismash-6.0.0.tar.gz
RUN sed -i 's/biopython >=1.78/biopython==1.76/' antismash-6.0.0/setup.py
RUN sed -i 's/jinja2/jinja2==3.0.0/' antismash-6.0.0/setup.py
RUN pip install ./antismash-6.0.0
RUN download-antismash-databases
#===========
COPY . /kb/module
WORKDIR /kb/module
RUN cp /kb/module/InsdcIO.py /miniconda/lib/python3.9/site-packages/Bio/SeqIO/InsdcIO.py
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]