-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
46 lines (33 loc) · 1.66 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
FROM kbase/narrative:py3-update as narrative
FROM python:3.6-slim
# Build arguments passed into the docker command for image metadata
ARG BUILD_DATE
ARG COMMIT
ARG BRANCH
RUN apt-get update -y && \
apt-get install -y wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /kb/runtime
# Copy over all of the libraries in the Narrative runtime. This is overkill
# but kind of guarantees that anything that runs in a narrative python setup
# will run here as well
COPY --from=narrative /kb/runtime/lib /kb/runtime/lib
COPY --from=narrative /kb/dev_container/narrative/src/dist/biokbase-0.0.1-py3.6.egg /tmp/biokbase-0.0.1-py3.6.egg
COPY bin /root/bin
ENV PYTHONPATH=/kb/runtime/lib/python3.6/site-packages/
RUN cd /root/bin && wget https://github.com/kbase/dockerize/raw/master/dockerize-linux-amd64-v0.6.1.tar.gz && \
tar xzf dockerize-linux-amd64-v0.6.1.tar.gz && \
rm dockerize-linux-amd64-v0.6.1.tar.gz && \
python /kb/runtime/lib/python3.6/site-packages/setuptools/command/easy_install.py --no-deps /tmp/biokbase-0.0.1-py3.6.egg
ENV PYTHONPATH=/kb/runtime/lib/python3.6/site-packages/:/kb/runtime/lib/python3.6/site-packages/biokbase-0.0.1-py3.6.egg
COPY source /root/source
WORKDIR /root/source
ENV PATH="/root/bin:/root/source:${PATH}"
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/kbase/ErrorLogging.git" \
org.label-schema.vcs-ref=$COMMIT \
org.label-schema.schema-version="1.0.0-rc1" \
us.kbase.vcs-branch=$BRANCH \
org.opencontainers.image.source="https://github.com/kbase/ErrorLogging" \
org.opencontainers.image.authors=="Jason Baumohl [email protected]"
ENTRYPOINT [ "/bin/bash" ]