-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.open
36 lines (23 loc) · 1.55 KB
/
Dockerfile.open
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
FROM biocorecrg/debian-perlbrew-pyenv3-java:buster AS builder
ARG IPSCAN_VERSION=5.65-97.0
# Install InterPro
RUN cd /usr/local; curl --retry 3 --fail --silent --show-error --location --remote-name https://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/${IPSCAN_VERSION}/interproscan-${IPSCAN_VERSION}-64-bit.tar.gz && \
curl --retry 3 --fail --silent --show-error --location --remote-name https://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/${IPSCAN_VERSION}/interproscan-${IPSCAN_VERSION}-64-bit.tar.gz.md5 && \
md5sum -c interproscan-${IPSCAN_VERSION}-64-bit.tar.gz.md5
RUN cd /usr/local; tar zxf interproscan-${IPSCAN_VERSION}-64-bit.tar.gz --exclude "interproscan-${IPSCAN_VERSION}/data" && rm interproscan-${IPSCAN_VERSION}-64-bit.tar.gz interproscan-${IPSCAN_VERSION}-64-bit.tar.gz.md5
# Replace interproscan.properties
COPY interproscan.properties /usr/local/interproscan-${IPSCAN_VERSION}/interproscan.properties
RUN chmod a+r /usr/local/interproscan-${IPSCAN_VERSION}/interproscan.properties
RUN chmod -R a+rx /usr/local/interproscan-${IPSCAN_VERSION}/bin/*
RUN cd /usr/local/interproscan-${IPSCAN_VERSION}; rm -rf data
FROM biocorecrg/debian-perlbrew-pyenv3-java:buster
ARG IPSCAN_VERSION=5.65-97.0
ENV PATH "/usr/local/interproscan:${PATH}"
COPY --from=builder /usr/local/interproscan-${IPSCAN_VERSION} /usr/local/interproscan
WORKDIR /usr/local/interproscan
# Extra packages
RUN apt-get update; apt-get install -y libdw1 libpcre3
RUN cd /lib/x86_64-linux-gnu; ln -s libpcre.so.3 libpcre.so
# Clean cache
RUN apt-get clean
RUN set -x; rm -rf /var/lib/apt/lists/*