-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (27 loc) · 1.09 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
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 echo "start building docker image"
WORKDIR /kb/module
# need to move from stretch to buster
RUN echo "deb http://deb.debian.org/debian buster main contrib" > /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138 0E98404D386FA1D9 DCC9EFBF77E11517
RUN apt-get update && apt-get install --yes g++ zlib1g-dev
WORKDIR /kb/module
RUN git clone https://github.com/rrwick/Filtlong.git \
&& cd Filtlong \
&& git reset --hard c56f02b980008d74a216108e54b1e592337c1b4b \
&& make -j \
&& cp bin/filtlong /usr/local/bin
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod -R a+rw /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]