-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
45 lines (40 loc) · 1.2 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
45
ARG VERSION=1.2.7
FROM "predector/predector-base:${VERSION}"
LABEL description="Docker image containing all requirements for the predector pipeline"
ARG SIGNALP3
ARG SIGNALP4
ARG SIGNALP5
ARG SIGNALP6
ARG TARGETP2
ARG DEEPLOC
ARG PHOBIUS
ARG TMHMM
RUN mkdir -p /tmp/onbuild
# Anything with ":-" here should be able to handle not being installed
COPY "${SIGNALP3}" \
"${SIGNALP4}" \
"${SIGNALP5}" \
${SIGNALP6:-} \
"${TARGETP2}" \
"${DEEPLOC}" \
"${PHOBIUS}" \
"${TMHMM}" \
/tmp/onbuild/
# CONDA_PREFIX should be set by the base container.
RUN echo \
&& signalp3-register "/tmp/onbuild/$(basename "${SIGNALP3}")" \
&& echo \
&& signalp4-register "/tmp/onbuild/$(basename "${SIGNALP4}")" \
&& echo \
&& signalp5-register "/tmp/onbuild/$(basename "${SIGNALP5}")" \
&& echo \
&& targetp2-register "/tmp/onbuild/$(basename "${TARGETP2}")" \
&& echo \
&& deeploc-register "/tmp/onbuild/$(basename "${DEEPLOC}")" \
&& echo \
&& phobius-register "/tmp/onbuild/$(basename "${PHOBIUS}")" \
&& echo \
&& tmhmm2-register "/tmp/onbuild/$(basename "${TMHMM}")" \
&& echo \
&& if [ ! -z "${SIGNALP6:-}" ]; then signalp6-register "/tmp/onbuild/$(basename "${SIGNALP6}")"; echo; fi \
&& rm -rf -- /tmp/onbuild