forked from kbaseapps/ontology_service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 1.01 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/kbase:sdkbase.latest
MAINTAINER KBase Developer
# -----------------------------------------
# Insert apt-get instructions here to install
# any required dependencies for your module.
# RUN apt-get update
RUN cpanm -i Config::IniFiles
RUN \
. /kb/dev_container/user-env.sh && \
cd /kb/dev_container/modules && \
rm -rf jars && \
git clone https://github.com/kbase/jars && \
rm -rf kb_sdk && \
git clone https://github.com/kbase/kb_sdk -b develop && \
cd /kb/dev_container/modules/jars && \
make deploy && \
cd /kb/dev_container/modules/kb_sdk && \
make && make deploy
RUN \
. /kb/dev_container/user-env.sh && \
cd /kb/dev_container/modules && \
rm -rf data_api && \
git clone https://github.com/kbase/data_api -b develop && \
pip install --upgrade /kb/dev_container/modules/data_api
# -----------------------------------------
COPY ./ /kb/module
RUN mkdir -p /kb/module/work
RUN chmod 777 /kb/module
WORKDIR /kb/module
RUN make all
ENTRYPOINT [ "./scripts/entrypoint.sh" ]
CMD [ ]