-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
37 lines (27 loc) · 1.25 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
FROM kbase/sdkbase2:python AS build
COPY . /tmp/catalog
RUN cd /tmp/catalog && make deploy-service deploy-server-control-scripts
FROM kbase/sdkbase2:python
# These ARGs values are passed in via the docker build command
ARG BUILD_DATE
ARG VCS_REF
ARG BRANCH
ENV KB_DEPLOYMENT_CONFIG "/kb/deployment/conf/deploy.cfg"
COPY --from=build /kb/deployment/lib/biokbase /kb/deployment/lib/biokbase
COPY --from=build /kb/deployment/services /kb/deployment/services
COPY --from=build /tmp/catalog/deployment/conf /kb/deployment/conf
SHELL ["/bin/bash", "-c"]
COPY requirements.txt requirements.txt
RUN source activate root && \
pip install -r requirements.txt
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/kbase/catalog.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0-rc1" \
us.kbase.vcs-branch=$BRANCH \
maintainer="Steve Chan sychan@lbl.gov"
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
# Here are some default params passed to dockerize. They would typically
# be overidden by docker-compose at startup
CMD [ "-template", "/kb/deployment/conf/.templates/deploy.cfg.templ:/kb/deployment/conf/deploy.cfg", \
"/kb/deployment/services/catalog/start_service" ]