forked from kbaseapps/BBTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (36 loc) · 1.3 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
46
47
48
49
50
51
52
53
54
FROM kbase/kbase:sdkbase2.latest
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.
# Here we install a python coverage tool and an
# https library that is out of date in the base image.
# update security libraries in the base image
ENV NSLOTS 4
# -----------------------------------------
WORKDIR /kb/module
# copy everything in, we need the version file
COPY ./ /kb/module
# add SAMTools (don't need yet)
#RUN apt-get update && apt-get install -y samtools
# needed for python3 base image
#RUN apt-get update && apt-get install -y wget gcc
# install BBTools
RUN BBMAP_VERSION=$(cat /kb/module/bbmap_version) \
&& BBMAP=BBMap_$BBMAP_VERSION.tar.gz \
&& wget -O $BBMAP https://sourceforge.net/projects/bbmap/files/$BBMAP/download \
&& tar -xf $BBMAP \
&& rm $BBMAP
# build BBTools small C-lib
RUN cd /kb/module/bbmap/jni \
&& make -f makefile.linux
# copy local ref files
RUN mkdir /global
COPY data/rqc_data/global /global
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]